예제 #1
0
        public void NextDouble_MinVal()
        {
            var    rng = new ConstantRandomSource(0UL);
            double x   = rng.NextDouble();

            Assert.Equal(0.0, x);
        }
예제 #2
0
        public void NextDouble_MaxVal()
        {
            var    rng = new ConstantRandomSource(ulong.MaxValue);
            double x   = rng.NextDouble();

            Assert.Equal(1.0 - INCR_DOUBLE, x);
        }