示例#1
0
        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()");
            }
        }
示例#2
0
文件: Random.cs 项目: buyaa-n/runtime
        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);
            }
        }
示例#3
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);
        }
    }
示例#4
0
文件: Random.cs 项目: ESgarbi/corefx
        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);
            }
        }