Skip to main content

roll_once

Function roll_once 

Source
pub fn roll_once(expr: &DiceExpr, rng: &mut impl Rng) -> (i64, Vec<Vec<u32>>)
Expand description

Roll the dice once, returning the total and the kept dice per group.

For groups with a Keep rule, only the kept dice are included in the inner Vec; the total already reflects the keep logic.