int i=(int)((Math.random()*4+1)*1000)
就这一句话就好使!!!
java--产生任何几位随机数
最新推荐文章于 2024-07-16 05:13:23 发布
int i=(int)((Math.random()*4+1)*1000)
就这一句话就好使!!!