阅读背景:

有关随机数问题

来源:互联网 
方法1
(数据类型)(最小值+Math.random()*(最大值-最小值+1))
例:
(int)(1+Math.random()*(10-1+1))(int)(1+



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: