js 随机数范围

Math.floor(Math.random()*(high-low+1) +low)

 

posted @ 2019-01-25 11:32  乐逍遥_1992  阅读(158)  评论(0编辑  收藏  举报