js 随机指定范围数

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

posted @ 2015-07-22 11:04  sunhaikuo  阅读(135)  评论(0编辑  收藏  举报