start=25 end=30 (int)(Math.random()*(end-start)+start) 转载于:https://www.cnblogs.com/or2-/p/3199953.html