Random Integers with Given Sum

Generates random integers with a given total sum

Vous suivez désormais cette soumission

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.

Citation pour cette source

Jonathan (2026). Random Integers with Given Sum (https://fr.mathworks.com/matlabcentral/fileexchange/121742-random-integers-with-given-sum), MATLAB Central File Exchange. Extrait(e) le .

Add the first tag.

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0