c sharp how to get a random -1 or 1 code example Example: c# get random between 0 and 1 double test = random.NextDouble();