I purpose the most lightweight way (from performance point of view) to shuffle an array is
document.write([1, 2, 3, 4].sort(function() {
return 0.5 - Math.random();
}));
Isn't it?
I purpose the most lightweight way (from performance point of view) to shuffle an array is
document.write([1, 2, 3, 4].sort(function() {
return 0.5 - Math.random();
}));
Isn't it?