Random randomNum = new Random(); int num = randomNum.Next(1, 100); // Generates a number between 1 and 100 Console.WriteLine(num); // Outputs the number