for (int i = 0; i < 20; i++)
{
byte wtf = (byte) new Random().Next(10);
Console.Write(wtf + " ");
}
This code produces the expected output if I run the program step by step: 4 6 9 2 9 0....
But if I just hit the Start Debugging or -Without Debugging this happen: 7 7 7 7 7 7...
Why?