java产生随机数我怎么固定长度???

如题所述

第1个回答  2011-12-14
int n;
Random random=new Random();
int s=random.nextInt(n);
第2个回答  2011-12-14
你可以规定长度是多少。
相似回答