Crate dicexp

Source

Structs§

DiceBag
The DiceBag struct is use to evaluate RPG dice notation expressions (eg “2d6+3”)
DiceRoll
The result of rolling the provided dice expression, including the average and minimum and maximum possible results.
SyntaxError
Error returns when a DiceBag fails to interpret or evaluate a dice expression

Functions§

new_simple_rng
Creates a new random number generator (RNG) from the provided seed using the default rand crate rand::rngs::StdRng RNG, using the current system millisecond timestamp as the RNG seed
simple_rng
Creates a new random number generator (RNG) from the provided seed using the default rand crate rand::rngs::StdRng RNG