コード例 #1
0
ファイル: DefaultRandom.Test.cs プロジェクト: minskowl/MY
        public void TestReseed()
        {
            DefaultRandom one = new DefaultRandom(123456789);
            DefaultRandom two = new DefaultRandom(123456789);

            Assert.AreEqual(one.Next(int.MaxValue), two.Next(int.MaxValue));
        }
コード例 #2
0
ファイル: DefaultRandom.Test.cs プロジェクト: minskowl/MY
        public void TestNext()
        {
            DefaultRandom randomNumberGenerator = new DefaultRandom();

            for (int index = 0; index < Specifications.ProbabilisticFunctionSamples; ++index)
            {
                Assert.That(randomNumberGenerator.Next(12345), Is.LessThan(12345));
            }
        }
コード例 #3
0
 public void TestNext() {
   DefaultRandom randomNumberGenerator = new DefaultRandom();
   for(int index = 0; index < Specifications.ProbabilisticFunctionSamples; ++index) {
     Assert.That(randomNumberGenerator.Next(12345), Is.LessThan(12345));
   }
 }
コード例 #4
0
    public void TestReseed() {
      DefaultRandom one = new DefaultRandom(123456789);
      DefaultRandom two = new DefaultRandom(123456789);

      Assert.AreEqual(one.Next(int.MaxValue), two.Next(int.MaxValue));
    }