int num=(int)(Math.random()*(9999-1000))+10000;
这应该是随机给出一个5位数吧但为什么要*(9999-1000)呢?
int num=(int)(Math.random())+10000;这样行不、为何?
2008-04-08 10:45

2008-04-08 10:52
2008-04-08 11:12
2008-04-08 12:52

2008-04-08 22:57
2008-04-09 00:02