Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- //Write a program that generates and prints to
- //the console 10 random values in the range [100, 200].
- namespace _02.RandomGenerator
- {
- class Program
- {
- static void Main(string[] args)
- {
- Random randomNumber = new Random();
- for (int i = 0; i <10; i++)
- {
- Console.WriteLine("{0}",randomNumber.Next(100,201));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement