Shuffle a Javascript array This function implements the so-called Fisher-Yates shuffle algorithm (Wikipedia) and is imperative.
the array to shuffle
an array with the same values, but shuffled
Shuffle a Javascript array This function implements the so-called Fisher-Yates shuffle algorithm (Wikipedia) and is imperative.