1、随机数 90 -100之间的随机数:parseInt(Math.random() * (100 - 90) + 90) 10-20之间的随机数:parseInt(Math.random() * (20 - 10) + 10) 1-10之间的随机数:Math.floor(Math.random()*10+1) 0-9之间的随机数:Math.floor(Math.random()*10) 相关文章: 2021-08-16 2021-09-19 2021-11-30 2021-12-24 2021-09-19 2021-09-19 2021-09-19