public void readState(DataInputStream stream) throws IOException {
  int len=mt.length;
  for (int x=0; x < len; x++)   mt[x]=stream.readInt();
  len=mag01.length;
  for (int x=0; x < len; x++)   mag01[x]=stream.readInt();
  mti=stream.readInt();
  __nextNextGaussian=stream.readDouble();
  __haveNextNextGaussian=stream.readBoolean();
}

public void readState ( DataInputStream stream ) throws IOException { int len = mt . length ; for ( int x = 0 ; x < len ; x ++ ) mt [ x ] = stream . readInt ( ) ; len = mag01 . length ; for ( int x = 0 ; x < len ; x ++ ) mag01 [ x ] = stream . readInt ( ) ; mti = stream . readInt ( ) ; __nextNextGaussian = stream . readDouble ( ) ; __haveNextNextGaussian = stream . readBoolean ( ) ; }
reads the entire state of the mersennetwister rng from the stream
