在java中怎样产生一随机数,有random之类的函数么 问题点数:20、回复次数:2Top
应该比较简单把Top
int a=10,b; Random rand=new Random(); b=rand.nextInt(a); b 则是0-9的随机数!Top