selectrandfrom(lowValue,highValue){//随机数
var choice=highValue-lowValue+1;
return Math.floor(Math.random()*choice+lowValue);
},
随机数在一定范围内:如:[1,4] [1,10]
最新推荐文章于 2022-10-17 22:15:09 发布
selectrandfrom(lowValue,highValue){//随机数
var choice=highValue-lowValue+1;
return Math.floor(Math.random()*choice+lowValue);
},