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