lundi 19 septembre 2016

How would I set the max amount of times an int can appear from a random number generator?

Say if I randomly generated 30 numbers from 1 to 50 but for example I didn't want 4 to occur more than 3 times at most, or 23 to occur more than once. How would I go about doing this?

Thanks in advance.




Aucun commentaire:

Enregistrer un commentaire