Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class RandomNumbersInGivenRange
- {
- static void Main()
- {
- int counter = int.Parse(Console.ReadLine());
- int minNum = int.Parse(Console.ReadLine());
- int maxNum = int.Parse(Console.ReadLine());
- Random rnd = new Random();
- for (int i = 0; i < counter; i++)
- {
- int print = rnd.Next(minNum, maxNum + 1);
- Console.Write(print + " ");
- }
- Console.WriteLine();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement