Advertisement
vlad0

ClassesObjects 2

Jan 16th, 2013
548
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. //Write a program that generates and prints to
  7. //the console 10 random values in the range [100, 200].
  8.  
  9.  
  10. namespace _02.RandomGenerator
  11. {
  12.     class Program
  13.     {
  14.         static void Main(string[] args)
  15.         {
  16.             Random randomNumber = new Random();
  17.             for (int i = 0; i <10; i++)
  18.             {
  19.                 Console.WriteLine("{0}",randomNumber.Next(100,201));
  20.             }
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement