I only know how I can generate a random boolean value (true/false). The default probability is 50:50
But how can I generate a true false value with my own probability? L
Random gen = new Random(); var boolVal = gen.Next(0, 1)==1? true : false;