name emilia9/dice
description An exercise in Clean and Readable C
last change 2026-06-23
clone url
https://srcdump.net/emilia9/dice.git

commit briefs

229ec74
Emilia Smólska  ·  2026-06-23
mistress
c1fb42d
Emilia Smólska  ·  2026-06-22
bbc0248
Emilia Smólska  ·  2026-06-22
f9ad4a3
Emilia Smólska  ·  2026-06-22
???
8efa043
Emilia Smólska  ·  2026-06-22
7c411a5
Emilia Smólska  ·  2026-06-21
192f5f6
Emilia Smólska  ·  2026-06-21
??
3eda5bb
Emilia Smólska  ·  2026-06-21
993a5e1
Emilia Smólska  ·  2026-06-21
45af142
Emilia Smólska  ·  2026-06-21
4648d4b
Emilia Smólska  ·  2026-06-21
6d90546
Emilia Smólska  ·  2026-06-20

tree

2 L
40 L
54 L
142 L
60 L

readme

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