//数字
//产生50到100之间的整数
Math.floor(Math.random() * 51)+50;
//产生80到100之间的整数
Math.floor(Math.random()
产生指定范围的随机整数或字母
最新推荐文章于 2021-06-15 14:53:03 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
//数字
//产生50到100之间的整数
Math.floor(Math.random() * 51)+50;
//产生80到100之间的整数
Math.floor(Math.random()