function selec(low,high){
var ch=high-low+1;
return Math.floor(Math.random()*ch+low);
}
for (var i = 0; i < 10; i++) {
document.write(selec(1111,8888)+"<br>");
}
转载于:https://www.cnblogs.com/houweidong/p/9197119.html
function selec(low,high){
var ch=high-low+1;
return Math.floor(Math.random()*ch+low);
}
for (var i = 0; i < 10; i++) {
document.write(selec(1111,8888)+"<br>");
}
转载于:https://www.cnblogs.com/houweidong/p/9197119.html