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()
});
转载于:https://www.cnblogs.com/LiuB/p/7419193.html
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()
});
转载于:https://www.cnblogs.com/LiuB/p/7419193.html