Try something twice, with a probability of failure at 10%, record wether the cummulative result was failure. Do that 1 million times, and form a posterior belief about this situation.
TruthSampling.call(n_samples: 1_000_000, trials: 2, probability: 0.1)
Or, here's a basketball example. If I've got a 1/6 free throw average, and I take 4 free throws, what is the chance I make at least one of those 4?
TruthSampling.call(trials: 4, probability: 1/6.0)
{false=>0.48256, true=>0.51744}
This gives me about a 52% chance of making at least one basket.