Beispiel #1
0
 public void NextInt()
 {
     for (int i = 0; i < __loops; i++)
     {
         _rng.NextInt();
     }
 }
Beispiel #2
0
        public void NextInt()
        {
            int            sampleCount = 10000000;
            XorShiftRandom rng         = new XorShiftRandom();

            double[] sampleArr = new double[sampleCount];

            for (int i = 0; i < sampleCount; i++)
            {
                sampleArr[i] = rng.NextInt();
            }

            UniformDistributionTest(sampleArr, 0.0, int.MaxValue + 1.0);
        }