Generating Random Numbers

You can generate random numbers with C#, using Random Class. 
Firstly, instantiate a new Random object.

Random r = new Random();

Use NextDouble method getting a value between 0,1 and 1,0

for (int i = 0; i <= 10; i++) {
 Console.WriteLine(r.NextDouble);
}

or use Next method with beginning and ending vaules,

for (int i = 0; i <= 10; i++) {
 Console.WriteLine(r.Next(1, 100));
}