Use the class Random. You may generate random numbers in the range [100, 200] by calling Random.Next(100, 201).
Write a program, which generates and prints on the console 10 random n
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sam HobbsRank #107 · 20.5K reputationPosted Oct 20, 2023, 10:49 PM EDT
This is obviously a class assignment. If your school prohibits plagiarism and your instructor sees an answer posted in a forum such as this and you use the answer provided then the instructor might expel you.
Muhammad Imran AnsariRank #326 · 7.6K reputationPosted Oct 20, 2023, 1:35 PM EDT
Here is a simple C# program that generates and prints 10 random numbers:
using System; namespace RandomNumberGenerator { class Program { static void Main(string[] args) { Random random = new Random(); // Generating and printing 10 random numbers for (int i = 0; i < 10; i++) { Console.WriteLine(random.Next(100, 200)); } } } }You can change the range according to your requirements.