java中,10-100随机数产生的代码

如题所述

(int)(Math.random()*90)+10 结果为 10 ~ 99 要到100的话乘以91就可以了
温馨提示:答案为网友推荐,仅供参考
相似回答