tomb
Tomb is a minimal crate that provides dice rolling mechanisms for games.
Examples
// Creating and rolling a D20
// Optional dependency, exclude to implement your own RNG.
use Rng;
// It is possible to define your own dice, rollers, and to use immutable die as well!
use ;
// Pre-defined seed so the result of this example is predictable.
let roller = from;
let mut d20 = D20 new;
roller.roll_mut;
assert_eq!;