Generate K random numbers which sum M

Usually you need to generate K random numbers (uniform distribution) which must add a certain number
ダウンロード: 264
更新 2014/2/11

ライセンスの表示

The function is able to generate K numbers which add up to M. M can be also a complex number.

Does not accepts constraints in the generation of the numbers. This means the feasibility problem is not addressed.

引用

Mario CASTRO GAMA (2024). Generate K random numbers which sum M (https://www.mathworks.com/matlabcentral/fileexchange/45490-generate-k-random-numbers-which-sum-m), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2011a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersRandom Number Generation についてさらに検索
タグ タグを追加

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0