A dice roller accepting dice notation written in Rust. Not maintained.
Also on crates.io if you want.
- Basic standard dice notation:
d8
,2d12
. - Addition:
d4 + 2d6
. - Subtraction:
d100 - 15
. - Multiplication:
d12 * 2
. - Division:
d100 / 15
. (Note that fractional values are rounded to the nearest integer.) - Brackets:
(d100 + d12) / 15
. - Complex dice notation:
1d4 + 2d6 * 3d2 / 4d8 + (2d6 + 3d8) - 16 * (1 / 1d4)
. - Percentile dice shorthand:
d%
=d100
. - Boolean dice:
1d1
=0
or1
.
rfyl is Public Domain software available under the Creative Commons 0. See LICENSE and COPYING for more information.