C#C
C#3y ago
Soinagie

✅ confused about classes

Class MainClass
{
Public static void Main ()
{ 
Random numberGenerator = new Random();
int num01 = numberGenerator.Next(1,11);
int num02 = numberGenerator.Next(1,11);
Console.WriteLine (num01 "and" num02);
Console.ReadKey();
}
}

I'm watching brackeys and he's talking about referencing a class but it doesn't make sense to me, he didn't call it
class
and even if he did, why? Is random number generator some sort of class? Like I don't get it at all
Was this page helpful?