Math.random控制随机数范围

let minNum= parseInt(Math.random()*7) + 1
let maxNum= parseInt(Math.random()*83) + 1
生成7~83的随机整数

posted on 2018-05-14 15:46  王子乔  阅读(3171)  评论(0编辑  收藏  举报

导航