Exemplo n.º 1
0
        public void Should_GenerateRandomValues_WithinExpectedValues_UsingLinearCongruentialGenerator()
        {
            linearCongruentialGenerator = new RandomizerLinearCongruentialGenerator();
            var randomValue = linearCongruentialGenerator.Random(5, 400);

            randomValue.Should().BeInRange(5, 400);
        }
Exemplo n.º 2
0
        public void Should_GenerateRandomValues_UsingLinearCongruentialGenerator()
        {
            linearCongruentialGenerator = new RandomizerLinearCongruentialGenerator();
            var randomValue = linearCongruentialGenerator.Random();

            randomValue.Should().BeGreaterOrEqualTo(0);
        }