how to make a random bool in c# code example Example: random bool c# var rand = new Random(); rand.NextDouble() >= 0.5;