using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace randomnumber
{
class Program
{
static void Main(string[] args)
{
// simple random number.
Random r = new Random();
Console.WriteLine("\nsimple random number generation :{0}", r.Next(25, 1000));
Console.WriteLine("\n---");
int[] randomNum = new int[10];
Random RandomNumber = new Random();
for (int i = 0; i < 10; i++)
{
randomNum[i] = RandomNumber.Next(1, 10);
}
foreach (int j in randomNum)
{
Console.WriteLine("Random number using loop :{0}", j);
}
Console.ReadLine();
}
}
}