I'm new to coding Blah Blah same old story but I put this code in:
{
public static Random Random;
public int numberOne = 5;
public int numberTwo = 6;
public void Run()
{
numberOne = Random.Next(0,11);
numberTwo = Random.Next(0,6);
Console.WriteLine(numberOne +" + "+ numberTwo);
Console.ReadKey(true);
}
numberOne
and numberTwo
are both public int
's. Why doesnt this work?
it comes back with an error stating that
"System.NullReferenceException: Object reference not set to an instance of an object."
What does that mean?