获取随机数

151 阅读1分钟
rnd(max, min = 0) {
return Math.round(Math.random() * (max - min)) + min
}