Random Integers with Given Sum

Versione 1.0.0 (1,3 KB) da Jonathan
Generates random integers with a given total sum
6 download
Aggiornato 5 dic 2022

Visualizza la licenza

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 Linux
Tag Aggiungi tag

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0