c# get randome between 1 and 2 code example Example: c# get random between 0 and 1 double test = random.NextDouble();