JS——math

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

Math.random()

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

posted @ 2017-11-09 13:49  var_obj  阅读(159)  评论(0编辑  收藏  举报