Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main()
- {
- int count = int.Parse(Console.ReadLine());
- int minInt = int.Parse(Console.ReadLine());
- int maxInt = int.Parse(Console.ReadLine());
- if (minInt <= maxInt)
- {
- Random random = new Random();
- for (int index = 0; index < count; index++)
- {
- Console.Write("{0} ", random.Next(minInt, maxInt + 1));
- }
- }
- else
- {
- Console.WriteLine("incorrect input");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement