| Crates.io | cute-dnd-dice |
| lib.rs | cute-dnd-dice |
| version | 4.0.0 |
| created_at | 2018-11-11 10:23:20.945967+00 |
| updated_at | 2020-11-03 08:33:40.991289+00 |
| description | Simple library to roll dices |
| homepage | |
| repository | https://gitlab.com/Douman/cute-dnd-dice |
| max_upload_size | |
| id | 96051 |
| size | 17,694 |
Simple library to roll dices
Relies on getrandom by default
use cute_dnd_dice::Roll;
fn main() {
let roll = Roll::from_str("2d20+10").expect("To parse roll");
println!("I roll {}", roll.roll());
}