主题:[讨论]我是菜鸟
a=(int)(Math.random()*9+1);
b=(int)(Math.random()*9+1);
int c=(int)(Math.random()*4);
switch(c)
该程序的一个模块是这样,我想问一下,为什么随机生成数要*9+1的呢?
						
					b=(int)(Math.random()*9+1);
int c=(int)(Math.random()*4);
switch(c)
该程序的一个模块是这样,我想问一下,为什么随机生成数要*9+1的呢?

 您所在位置:
 您所在位置: 
 
