public void testLocalInstances_deterministic(){
  MatsimRandom.reset();
  Random local1a=MatsimRandom.getLocalInstance();
  Random local1b=MatsimRandom.getLocalInstance();
  MatsimRandom.reset();
  Random local2a=MatsimRandom.getLocalInstance();
  Random local2b=MatsimRandom.getLocalInstance();
  assertEqualRandomNumberGenerators(local1a,local2a);
  assertEqualRandomNumberGenerators(local1b,local2b);
}

public void testLocalInstances_deterministic ( ) { MatsimRandom . reset ( ) ; Random local1a = MatsimRandom . getLocalInstance ( ) ; Random local1b = MatsimRandom . getLocalInstance ( ) ; MatsimRandom . reset ( ) ; Random local2a = MatsimRandom . getLocalInstance ( ) ; Random local2b = MatsimRandom . getLocalInstance ( ) ; assertEqualRandomNumberGenerators ( local1a , local2a ) ; assertEqualRandomNumberGenerators ( local1b , local2b ) ; }
tests that local instances can be recreated ( = are deterministic ) if the same random seed is used to generate them .
