Using Math.random works well when you need to generate a single random number. If you need to generate a series of random numbers, you should create an instance of java.util.Random and invoke methods on that object to generate numbers. 我想让大家帮忙给俺个这样的例子,用java.util.Random中的哪些方法就可以产生一系列的随机数呢???
r.nextDouble(),r.nextFloat(),r.nextInt()...
think in java 各章后练习答案.....
http://blog.csdn.net/heimaoxiaozi/