dice Mode
In dice mode, integer values are generated as total of the dice faces. The format of the command is as follows:
randog dice DICE_ROLL [common-options]
Arguments and Options
DICE_ROLL
:the dice roll value in dice notation such as
2d6
.
common-options
Examples
The simplest example is the following, which outputs the sum of two rolls of 6-sided dice.
randog dice 2d6
Repeatedly Generate
A single command execution can output results multiple times:
# Repeat 10 times
randog dice 2d6 -r 10
# Generate list which contains 10 values
randog dice 2d6 -L 10
Format: 0-padding, etc.
The output format can be specified in format specification mini-language as follows:
# output 0-padded integer such as '08'
randog dice 2d6 --fmt 02