Randomize Array
Yesterday I posted a script that would randomize an array, but it was not efficient. Especially if the array was long.
In the comments I lamented if I was using PHP I could use the
And a brief search: Fisher-Yates array randomizer converted to Javascript.
I like this solution best.
In the comments I lamented if I was using PHP I could use the
array_rand() function and simply randomize the array...And a brief search: Fisher-Yates array randomizer converted to Javascript.
I like this solution best.
