function selectForm(first, second) {
var choices = second - first + 1;
return Math.floor(Math.random() * choices + first);
}
function selectForm(first, second) {
var choices = second - first + 1;
return Math.floor(Math.random() * choices + first);
}
本文标题:获取自定义范围的随机整数
本文链接:https://www.haomeiwen.com/subject/aiovwttx.html
网友评论