I need to assign a random number from a range X for each element in list Y while minimizing the number of duplicated numbers from X.
To clarify, I do not want a situation where I have an excess of number i from X while number j from X is not used.
In their a computational efficient way to this? I'm happy to use a library.
Aucun commentaire:
Enregistrer un commentaire