Array Shuffle
by shapeshifta
JavaScript
var shuffle = function() { return 0.5 - Math.random() },
arr = [1,2,3,4,5].sort(shuffle);
console.log(arr);
by shapeshifta
var shuffle = function() { return 0.5 - Math.random() },
arr = [1,2,3,4,5].sort(shuffle);
console.log(arr);