mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-14 19:27:53 +00:00
4 lines
92 B
JavaScript
4 lines
92 B
JavaScript
export function randomNum (n, m) {
|
|
return Math.floor(Math.random() * (m - n + 1) + n)
|
|
}
|