Math.random控制随机数范围

let minNum= parseInt(Math.random()*7) + 1
let maxNum= parseInt(Math.random()*83) + 1
生成7~83的随机整数
原文地址:https://www.cnblogs.com/wangqiao170/p/9036445.html