js 随机指定范围数

Math.floor(Math.random()*5)

原文地址:https://www.cnblogs.com/sunhk/p/4666742.html