Ejemplo n.º 1
0
        public void TestRandomDouble()
        {
            double random = RandomNumbersTool.RandomDouble();

            Assert.IsTrue(random >= 0.0);
            Assert.IsTrue(random <= 1.0);
        }
Ejemplo n.º 2
0
        public void TestRandomDouble_double_double()
        {
            double lower_limit = 2.0;
            double upper_limit = 4.0;
            double random      = RandomNumbersTool.RandomDouble(lower_limit, upper_limit);

            Assert.IsTrue(random >= lower_limit);
            Assert.IsTrue(random <= upper_limit);
        }