public static void Sample() { SubRandom r = new SubRandom(); for (int i = 0; i < ITERATIONS; i++) { double d = r.ExposeSample(); Assert.True(d >= 0.0 && d < 1.0, d + " between 0.0 and 1.0 - ExposeSample()"); } }
public void Sample(bool seeded) { SubRandom r = seeded ? new SubRandom(42) : new SubRandom(); for (int i = 0; i < 1000; i++) { double d = r.ExposeSample(); Assert.True(d >= 0.0 && d < 1.0); } }
public static void Sample() { SubRandom r = new SubRandom(); for (int i = 0; i < 1000; i++) { double d = r.ExposeSample(); Assert.True(d >= 0.0 && d < 1.0); } }
public static void Sample() { SubRandom r = new SubRandom(); for (int i = 0; i < 1000; i++) { double d = r.ExposeSample(); Assert.True(d >= 0.0 && d < 1.0); } }