Generate K random numbers which sum M
Versión 1.0.0.0 (2,03 KB) por
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.
Citar como
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. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2011a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Random Number Generation en Help Center y MATLAB Answers.
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |