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
I think it can help you
Random gen = new Random(); bool result = gen.Next(100) < 50 ? true : false;