Randomise JavaScript Array
Friday, July 4, 2008 - 09:43
Randomising a JavaScript array can be done in one or two ways. The easy way is to create a function that returns a random number and then use the sort() function of the Array object to sort the array by a random value.