How do I generate a random int number in c#?

How do I generate a random int number in c#?

 

In this article, you will learn How to generate a random int number in c#?

 

Random rnd = new Random();
int num= rnd.Next(1, 100);

2021-10-03