var iArray = [];
funtion getRandom(istart, iend){
var iChoice = istart - iend +1;
return Math.floor(Math.random() * iChoice + istart;
}
/*Math.random()就是获取 0-1 之间的随机数(永远获取不到 1)*/
for(var i=0; i<10; i++){
var result= getRandom(10,100);
iArray.push(result);
}
iArray.sort(function(a,b){
return a-b;
});