Beispiel #1
0
 public SNoise3(Random rnd) {
   for (int i = 0; i < 256; i++) ptab[i] = (byte) i;
   for (int i = 0; i < 256; i++) {
     int r = rnd.nextInt(256);
     byte t = ptab[i];
     ptab[i] = ptab[r];
     ptab[r] = t;
   }
 }