赞
踩
Math.random()随机数 Math.PI() 圆周率 Math.floor 向下取整 Math.ceil 向上取整 Math.round 四舍五入 Math.max 最大值 Math.min 最小值
//返回 向下取整(随机数()*(最大值-最小值)+最小值) return Math.floor(Math.random()*(max-min)+min)