07 2019 档案

摘要:希望生成[min,max]的随机数,公式如下: // max - 期望的最大值 // min - 期望的最小值 parseInt(Math.random()*(max-min+1)+min,10); Math.floor(Math.random()*(max-min+1)+min); 阅读全文
posted @ 2019-07-17 11:21 cui-YF 阅读(917) 评论(0) 推荐(0) 编辑