Esempio n. 1
0
        private void RandomDoubleConsistencyTest(IRandomProvider r)
        {
            int    maxtries = 1000;
            double min      = 1.2;
            double max      = 6.4;

            for (int i = 0; i < maxtries; i++)
            {
                double next = r.RandomDouble(min, max);
                Assert.IsTrue(next >= min && next <= max);
            }
        }
Esempio n. 2
0
 public static double RandomDouble(double min, double max, IRandomProvider random)
 {
     return(random.RandomDouble(min, max));
 }