function getRandom(n, m) {
return Math.floor(Math.random() * (m - n + 1)) + n
}
js 获取n-m的随机整数
最新推荐文章于 2024-07-22 15:13:59 发布
function getRandom(n, m) {
return Math.floor(Math.random() * (m - n + 1)) + n
}