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