how to convert a random to an int and boolean code example Example: random bool c# var rand = new Random(); rand.NextDouble() >= 0.5;