public void NextDouble_MinVal() { var rng = new ConstantRandomSource(0UL); double x = rng.NextDouble(); Assert.Equal(0.0, x); }
public void NextDouble_MaxVal() { var rng = new ConstantRandomSource(ulong.MaxValue); double x = rng.NextDouble(); Assert.Equal(1.0 - INCR_DOUBLE, x); }