随机数

Math.floor(Math.random() * n )
 
0-(n-1)之间的随机数(整数)
原文地址:https://www.cnblogs.com/liuerpeng/p/12599367.html