随机数

随机数:
Math.random(); //该方法产生一个0到1之间的浮点数。
Math.floor(Math.random()*10+1); //1-10

原文地址:https://www.cnblogs.com/zhubenxi/p/5146281.html