{static Random rand = new Random();
static int pRand(int mod) {
    return Math.abs(rand.nextInt()) % mod + 1;
  }
int[] a;
    a = new int[pRand(20)];}{static Random rand = new Random();
 int[] a;
    a = new int[rand.nextInt(20)];}
以上两段程序在效果上是一样的,可我 搞不明白return Math.abs(rand.nextInt()) % mod + 1;语句的作用,这里涉及到Random类下的nextInt()方法实质么??
  我查看了nextInt()这个方法的原代码但看不懂……“Returns the next pseudorandom, uniformly distributed int value from this random number generator's sequence. The general contract of nextInt is that one int value is pseudorandomly generated and returned. All 2Power(32) possible int values are produced with (approximately) equal probability.”这是对这个方法的描述,什么是伪随机码????