Random random = new Random(); int randomNumber = random.Next(1, 100); Console.WriteLine(randomNumber);