Say I have some random numbers 0-9. I want to find a way to get the values 0-9, but I do not want to have a repeat of another number until all the other values have been used an equal number of times.
Ex. 4, 6, 5, 3, 0, 1, 9, 7, 8, (rand number because I used every other number once)
Is there any efficient way to do this?
Aucun commentaire:
Enregistrer un commentaire