public PerlinNoiseGenerator(Random rand){
  offsetX=rand.nextDouble() * 256;
  offsetY=rand.nextDouble() * 256;
  offsetZ=rand.nextDouble() * 256;
  for (int i=0; i < 256; i++) {
    perm[i]=rand.nextInt(256);
  }
  for (int i=0; i < 256; i++) {
    int pos=rand.nextInt(256 - i) + i;
    int old=perm[i];
    perm[i]=perm[pos];
    perm[pos]=old;
    perm[i + 256]=perm[i];
  }
}

public PerlinNoiseGenerator ( Random rand ) { offsetX = rand . nextDouble ( ) * 256 ; offsetY = rand . nextDouble ( ) * 256 ; offsetZ = rand . nextDouble ( ) * 256 ; for ( int i = 0 ; i < 256 ; i ++ ) { perm [ i ] = rand . nextInt ( 256 ) ; } for ( int i = 0 ; i < 256 ; i ++ ) { int pos = rand . nextInt ( 256 - i ) + i ; int old = perm [ i ] ; perm [ i ] = perm [ pos ] ; perm [ pos ] = old ; perm [ i + 256 ] = perm [ i ] ; } }
creates a seeded perlin noise generator with the given random
