Date: 08/08/07 (Javascript Community) Keywords: php, java
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 array_rand() function and simply randomize the array...And a brief search: Fisher-Yates array randomizer converted to Javascript.I like this solution best.
array_rand()
Source: http://community.livejournal.com/javascript/138465.html