Hi all,
I have a weird problem. I have the following code:
void test() {
Random r = new Random();
Console.WriteLine(r.NextDouble());
Console.WriteLine(r.NextDouble());
}
test();
test();
test();
test();
test();
Each time test is called, 2 random numbers are generated. The first number is very small < 0.02, while the other is just between 0 and 1 .
What do I miss, and how to make the first number normal (between 0 and 1, not between 0 and 0.02)?