Rerolls and unique values

Repeat faces by condition or remove duplicates in a dice pool.

Continuous reroll

r rerolls the minimum face (normally 1) until another appears. r<3 rerolls faces below 3. ro makes at most one reroll per die; it keeps the next face even if it still matches.

4d6r
d20r<3
4d8ro<=2

Unique values

u rerolls duplicates until active dice in this pool have distinct values. uo tries only once per duplicate; repetition can remain. A compare point restricts which duplicated values get rerolled; it compares the duplicate’s current value.

4d6u
4d6uo
4d6u<4

Unique compares dice from the same dice node, after explosions and rerolls. The compiler returns IMPOSSIBLE_UNIQUE if distinct faces are impossible. Provably endless rerolls are rejected too. Other loops obey RNG and modifier-step limits.

Compare points

Use =, != or <>, <, <=, >, and >= followed by a number. Compare points are optional for r, ro, u, and uo.

Try the examples

Try 4d6r · Try 4d6uo · Try d20r<3