C# random.Next error

C#
public System.Random r = new System.Random();
public int guess1 = r.Next(0, 100000);
Source

Also in C#: