Random Integers with Given Sum
Versione 1.0.0 (1,3 KB) da
Jonathan
Generates random integers with a given total sum
Description: sumrandi uses randi to generate random numbers with a given
sum
R = sumrandi(IMIN,IMAX,N,S) returns an N-by-N matrix containing pseudorandom
integer values drawn from the discrete uniform distribution on IMIN:IMAX
then generates new numbers such that their sum is S.
Cita come
Jonathan (2024). Random Integers with Given Sum (https://www.mathworks.com/matlabcentral/fileexchange/121742-random-integers-with-given-sum), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2022a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxTag
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 |