Simple library to roll dices
Roll employs PRNG which allows predictable randomness If predict-ability is not desirable, then use set_seed to specify random seed value.
set_seed
Default seed is 1
1
use cute_dnd_dice::Roll; fn main() { let roll = Roll::from_str("2d20+10").expect("To parse roll"); println!("I roll {}", roll.roll()); }