[][src]Crate cute_dnd_dice

Simple library to roll dices

Random source

Relies on getrandom by default

Usage

use cute_dnd_dice::Roll;

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

Structs

Roll

D&D Roll representation

Enums

Modifier

Roll Modifier

ParseError

Possible errors when parsing roll