Random 雨潇潇 2022-07-28 88 阅读1分钟 数组随机 let random = Math.floor(Math.random() * arr.length) ``````````````````` function getRandom(m, n) { return Math.floor(Math.random() * (n - m + 1)) + m }