Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class GenerateRandomNumbers
- {
- static void Main()
- {
- Random n = new Random();
- int number = n.Next(100, 200); //n.Next() finds the next random # bet 100 and 200
- for (int i = 1; i <= 10; i++) //the program will run through 10 iterations
- Console.WriteLine(n.Next(100, 200)); //program prints the next random #
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment