I'm trying to pick a random element from an array with exceptions.
For example let's say I have a boolean array with length 10, 2 of these are set to true at a random index. How can I select a random false boolean and set it to true?
I hope this isn't too vague, English isn't my first language.
Aucun commentaire:
Enregistrer un commentaire