Beispiel #1
0
        public void next_int_sanity()
        {
            var random = new NoiseBasedRNG(12345);

            for (var i = 0; i < 60; i++)
            {
                random.Next(i).Should().BeLessOrEqualTo(i);
            }
        }
Beispiel #2
0
        public void next_int_range_sanity()
        {
            var random = new NoiseBasedRNG(12345);

            for (var i = 0; i < 60; i++)
            {
                var randomResult = random.Next(i, i + 60);
                randomResult.Should().BeLessOrEqualTo(i + 60);
                randomResult.Should().BeGreaterOrEqualTo(i);
            }
        }