Esempio n. 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()");
            }
        }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 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);
        }
    }
Esempio n. 4
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);
            }
        }