生成指定范围内的随机数 Math.random()*(上限-下限+1)+下限 生成从1开始 至 任意值 parseInt(Math.random()*(上限-下限+1)+下限); 相关文章: 2022-12-23