vendredi 21 août 2015

Random numbers from specific array with const sum

How can I:

  1. generate random numbers from (for example) 1 to 3 inclusive,
  2. must be specific number of them (for example) 32,
  3. and they must give specific sum (for example) 72



Aucun commentaire:

Enregistrer un commentaire