random-dice-roll
function
The random-dice-roll
action generate a random dice roll from a text D&D style spec like “3d6” or “1d20 + 4”. It belongs to the random category within the numbers area.
Action Syntax
random-dice-roll "text"
A quoted text string
random-dice-roll $variable
A variable name starting with $
Return Value
This function returns a
NUMBER
value that can be stored in a variable:
$result = random-dice-roll
Valid sizes
tiny
small
medium
large
extra
Examples
// Basic Usage
$NUMBER = random-dice-roll "3d6"
Action code: 1749279958
Version: 0.6.4-0
Last updated: 2025-06-13