lundi 29 janvier 2018

Best way to create a list with random int numbers with some criteria

I'd like to know what is the best way to create a list with random integer numbers, without repetition, and defining: how many even/odd, how many primer and how many multiple of 3 the list can have.

Exemple: I want a list with 20 numbers, between 1 to 100, with 5 odds and 5 primers and 4 multiple of 3.

Thank you for the help.




Aucun commentaire:

Enregistrer un commentaire