generate random number in c# between 1 to 10 code example
Example 1: generate a random number in c#
Random rnd = new Random();
int value = rnd.Next(min,max);
Console.Write(value);
Example 2: c# get random between 0 and 1
double test = random.NextDouble();
Example 3: c# random number between 0 and 1
Random rand = new Random();
return rand.NextDouble; //returns a random number bw 0.0 and 1.0!