11智能在线
新记
java产生随机数我怎么固定长度???
如题所述
举报该文章
其他看法
第1个回答 2011-12-14
int n;
Random random=new Random();
int s=random.nextInt(n);
第2个回答 2011-12-14
你可以规定长度是多少。
<上一页
1
2
相似回答
大家正在搜
相关问题
java产生随机数我怎么固定长度
java 随机数固定位数
JAVA如何固定随机数数位
java产生和值固定的随机数
java 如何创建一个类或方法能够给出产生指定位数的一个随机...
如何在java中产生随机数?
JAVA中如何产生一个特定范围的随机数?
在java中产生随机数