mardi 30 mai 2017

Select randomly from array without using Math.random

Q. Is it possible to select randomly from an array without using Math.random?

Background: I have a large array of random numbers between 0 and 48. I'm trying to select randomly from this pool of numbers without selecting duplicates (which I'll use a while loop and indexOf() === -1 as the condition).




Aucun commentaire:

Enregistrer un commentaire