Check out example codes for "c# ramdom". It will help you in understanding the concepts better.

Code Example 1

//The following code returns a random number. 
int num = random.Next();
//The following code returns a random number less than 1000.
int num = random.Next(1000);

Learn ReactJs, React Native from akashmittal.com