panyujun

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
猜你喜欢
  • 2021-09-19
  • 2021-09-19
  • 2021-12-24
  • 2021-11-30
相关资源
相似解决方案