Пример #1
0
        public void TestIntRange()
        {
            var rnd = new LinearCongruentialRandom(1);

            foreach (int aIntRangeTest in IntRangeTest)
            {
                int g = rnd.NextInt(0, 10);
                Assert.AreEqual(g, aIntRangeTest);
            }
        }
Пример #2
0
        public void TestInt()
        {
            var rnd = new LinearCongruentialRandom(1);

            foreach (int aIntTest in IntTest)
            {
                int g = rnd.NextInt();
                Assert.AreEqual(g, aIntTest, AIFH.DefaultPrecision);
            }
        }