Skip to main content

roll_stats

Function roll_stats 

Source
pub fn roll_stats(expr: &DiceExpr) -> RollStats
Expand description

Compute theoretical min, max, and mean for a DiceExpr.

Ignores advantage/disadvantage (those require simulation to compute exactly). For keep groups, uses the kept count to compute bounds (not statistically exact for kh/kl, but gives useful ballpark figures).