mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-04-30 14:00:17 +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)
|
|
}
|