var count = 100; //var a = new Array();for(var i = 0; i < count; i++){ a[i] = i+1;}a.sort(function(){ return 0.5 - Math.random() });