| Crates.io | reroll |
| lib.rs | reroll |
| version | 1.0.0 |
| created_at | 2025-07-17 14:44:09.889345+00 |
| updated_at | 2025-07-17 14:44:09.889345+00 |
| description | cli app to roll dice! |
| homepage | https://github.com/DVDTSB/reroll |
| repository | https://github.com/DVDTSB/reroll |
| max_upload_size | |
| id | 1757607 |
| size | 31,223 |
A powerful and flexible command-line dice roller for tabletop games and probability testing.
Supports:
d8,3d6, 4d6kh3, and 2d10dl1+, -, *, /3(1d6+2) rolls 1d6+2 three times!), keep/drop high/low (k/kh, kl, d/dh, dl)reroll "4d6kh3 + 2"
reroll "3(2d8+1)"
reroll "1d20 + 5"
Use quotes around expressions to avoid shell interference.
-v or --verbose: Show all final rolls.-h or --help: Print help and usage info.1d6!) with custom thresholds (e.g., 1d6!5)$ reroll "4d6kh3"
14
$ reroll -v "4d6kh3"
[6, 4, 4]
cargo build --release
cargo test
src/parser.rs: Expression parsing (via Pest)src/eval.rs: Expression evaluation and dice logicsrc/main.rs: CLI frontend| Example | Meaning |
|---|---|
3d6 |
Roll 3 six-sided dice |
4d6kh3 |
Roll 4d6, keep the highest 3 |
2d8dl1 |
Roll 2d8, drop the lowest 1 |
1d6! |
Exploding dice on max roll |
3(1d6+2) |
Roll 1d6+2 three times |
(2d6+1)*2 |
Roll and apply arithmetic |
Made with ๐ for dice goblins and probability nerds.