JS——math

random() 方法可返回介于 0 ~ 1 之间的一个随机数。

Math.random()

0.0 ~ 1.0 之间的一个伪随机数,但是不包括0和1。

原文地址:https://www.cnblogs.com/wuqiuxue/p/7808992.html