FunASR/web-pages/mock/util.js

4 lines
92 B
JavaScript

export function randomNum (n, m) {
return Math.floor(Math.random() * (m - n + 1) + n)
}