A library for rolling dice.
Add this to your Cargo.toml toml [dependencies] roll-dice = "0.1"
Cargo.toml
toml [dependencies] roll-dice = "0.1"
Roll 3d6 (3 six-sided die) and get the sum of the results ``` use roll_dice::roll;
3d6
let rolled = roll(3, 6); let sum: u32 = rolled.iter().sum(); ```
MIT license