I'm unable to tell if there is something wrong with Random number generator in this case.
Random x = new Random();
do
{
a = x.Next(1, 200);
aa = x.Next(1, 200);
b = x.Next(a + 1, 200);
bb = x.Next(aa + 1, 200);
Console.WriteLine(a + " " + aa + " " + b + " " + bb);
} while (a != aa || b != bb);
I'm comparing when two pairs of random numbers are the same, when they are I want to know what those numbers are. For some reason they always end up being in range of 150 - 200. Which doesn't seem random enough to me.
Basically I'm trying simulate how long it would take until 2 number lottery is won.
Is this because Random class is not random enough or is there problem with the code?