java 随机数

(int)(Math.random()* (max+1 - min) + min)

原文地址:https://www.cnblogs.com/sode/p/2320457.html