public SimplexNoise(Random random){
  for (int i=0; i < 256; i++) {
    int randInd=random.nextInt(255);
    short randShort=(short)randInd;
    short randShortMod12=(short)(randInd % 12);
    perm[i]=randShort;
    perm[i + 256]=randShort;
    permMod12[i]=randShortMod12;
    permMod12[i + 256]=randShortMod12;
  }
}

public SimplexNoise ( Random random ) { for ( int i = 0 ; i < 256 ; i ++ ) { int randInd = random . nextInt ( 255 ) ; short randShort = ( short ) randInd ; short randShortMod12 = ( short ) ( randInd % 12 ) ; perm [ i ] = randShort ; perm [ i + 256 ] = randShort ; permMod12 [ i ] = randShortMod12 ; permMod12 [ i + 256 ] = randShortMod12 ; } }
creates a new noise based on the given seed . the seed is used to populate the permutation table with pseudorandom numbers .
