随机生成n-m正整数

function getRandomNum(m, n) {
return Math.floor(Math.random() * (m - n) + n);
}
posted @ 2022-04-28 15:14  莣ㄋ噯  阅读(40)  评论(0)    收藏  举报