Use the class Random. You may generate random numbers in the range [100, 200] by calling Random.Next(100, 201).
Loading
Use the class Random. You may generate random numbers in the range [100, 200] by calling Random.Next(100, 201).
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Oct 21, 2023, 2:49 AM
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 AnsariPosted Oct 20, 2023, 5:35 PM
Here is a simple C# program that generates and prints 10 random numbers:
You can change the range according to your requirements.