Skip to main content

estimate_probability

Function estimate_probability 

Source
pub fn estimate_probability(
    expr: &DiceExpr,
    target: i64,
    sims: u64,
    rng: &mut impl Rng,
) -> f64
Expand description

Estimate the probability of rolling at least target using Monte Carlo simulation.