34 lines
596 B
C#
34 lines
596 B
C#
|
/*
|
||
|
* C# Program to Generate Random Numbers
|
||
|
*/
|
||
|
using System;
|
||
|
class Program
|
||
|
{
|
||
|
static void Main()
|
||
|
{
|
||
|
Console.WriteLine("Some Random Numbers that are generated are : ");
|
||
|
for (int i = 1; i < 10; i++)
|
||
|
{
|
||
|
Randfunc();
|
||
|
}
|
||
|
}
|
||
|
static Random r = new Random();
|
||
|
static void Randfunc()
|
||
|
{
|
||
|
int n = r.Next();
|
||
|
Console.WriteLine(n);
|
||
|
Console.ReadLine();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
Some Random Numbers that are generated are :
|
||
|
1234567
|
||
|
8754352
|
||
|
9864930
|
||
|
8352048
|
||
|
1920472
|
||
|
2846104
|
||
|
7649207
|
||
|
4928756
|
||
|
9261746
|