cute-dnd-dice

Build Crates.io Documentation

Simple library to roll dices

Random source

Roll employs PRNG which allows predictable randomness If predict-ability is not desirable, then use set_seed to specify random seed value.

Default seed is 1

Usage

```rust use cutednddice::Roll;

fn main() { let roll = Roll::from_str("2d20+10").expect("To parse roll"); println!("I roll {}", roll.roll()); } ```