private void init(long seed,int size){
  random=new Random();
  random.setSeed(seed);
  state=new short[size];
  for (int i=0; i < state.length; i++) {
    state[i]=(short)i;
  }
}

private void init ( long seed , int size ) { random = new Random ( ) ; random . setSeed ( seed ) ; state = new short [ size ] ; for ( int i = 0 ; i < state . length ; i ++ ) { state [ i ] = ( short ) i ; } }
initializes the internal generator state
