mistress dice.6
DICE(6) Games Manual DICE(6)

dicedice roller and coin flipper

dice -C [-q]

dice -S [-q]

dice [-q] expr

The dice utility displays pseudorandom results of specified dice roll or coinflip expressions. It accepts the following flags:

Flip a coin, displaying “heads” or “tails”. If -q is specified, display “0” or “1” instead.
Parse a line read from standard input instead of expr.
Be quieter.

If -c is not specified, an expression in the form xdy[+xdy]... is parsed and randomly evaluated. Unless -q is specified, the expression is printed before the result, followed by an equals sign.

The dice utility exits 0 on success, and >0 if an error occurs.

random(6)

August 7, 2026 Linux 6.18.35-0-lts