AICore.Tests.Utilities.CryptoRandomTest.TestGenerateRandom C# (CSharp) Method

TestGenerateRandom() private method

private TestGenerateRandom ( ) : void
return void
        public void TestGenerateRandom()
        {
            for (int i = 0; i < 1000; i++)
            {
                var newParam = new CryptoRandom().RandomValue;

                Assert.IsTrue(newParam <= 1.0);
                Assert.IsTrue(newParam >= -1.0);
            }
        }
    }
CryptoRandomTest