Generate K random numbers which sum M
Versione 1.0.0.0 (2,03 KB) da
Mario CASTRO GAMA
Usually you need to generate K random numbers (uniform distribution) which must add a certain number
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.
Cita come
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. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2011a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Scopri di più su Random Number Generation in Help Center e MATLAB Answers
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 |