bracket-random 0.8.7

Random number generator (xorshift based), focused on dice rolling. Optionally includes parsing of RPG-style dice strings (e.g. "3d6+12"). Part of the bracket-lib family.
Documentation
1
2
3
4
5
6
7
8
use bracket_random::prelude::*;

fn main() {
    let mut rng = RandomNumberGenerator::new();
    DiceIterator::new(6, &mut rng)
        .take(10)
        .for_each(|n| println!("Rolled {}", n));
}