public void TestGeneratedNumberIsInRange()
 {
     var random = new RandomGenerator();
     var randNum = random.GetRandomBigIntegerInRange(1000, 1000000);
     Assert.IsTrue(randNum >= 1000);
     Assert.IsTrue(randNum < 1000000);
 }
 public void TestOddsOnlyProducesOnlyOddNumbers()
 {
     bool result = true;
     var random = new RandomGenerator();
     for (int i = 0; i < 100; ++i)
     {
         var randNum = random.GetRandomBigIntegerInRange(1000, 1000000, true);
         result = result && (randNum % 2 == 1);
     }
     Assert.IsTrue(result);
 }