Math.random()? :? [0.0,1)
Math.random() * 90 : [0.0, 90.0)
(int)(Math.random() * 90) : [0,89]
(int)(Math.random() * 90 + 10) : [10,99]
?
公式:获取[a,b]范围内的随机数:(int)(Math.random()? * (b - a + 1) + a)
生成指定范围的随机数(JAVA)
原文:https://blog.51cto.com/u_12110509/2929975