Numbers
6 posts tagged with "Numbers"
pick-random
The pick-random action Selects a random item from a group of options. It belongs to the random category within the numbers area.
Action Syntax
pick-random $variable
pick-random from $variable
Valid sizes
Examples
// Basic Usage
$any = pick-random $group-var
random-between
The random-between action generates a random integer between two numbers. It belongs to the random category within the numbers area.
Action Syntax
random-between 123 and 123
random-between $variable and 123
random-between 123 and $variable
random-between $variable and $variable
Return Value
This function returns a
random-dice-roll
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"
random-dice-roll $variable
Return Value
This function returns a
$result = random-dice-roll
Valid sizes
Examples
// Basic Usage
$NUMBER = random-dice-roll "3d6"
random-digits
The random-digits action generate a string of random digits with the specified length. Default length is 6. It belongs to the random category within the numbers area.
Action Syntax
random-digits length 123
random-digits length $variable
Return Value
This function returns a
$result = random-digits
Valid sizes
Examples
// Basic Usage
$text = random-digits length 10
random-text
The random-text action Creates random text with letters and numbers for passwords or tokens. It belongs to the random category within the numbers area.
Action Syntax
random-text !set:icon
random-text length 123
random-text length $variable
Return Value
This function returns a
random-uuid
The random-uuid action generate a random uuidv4. It belongs to the random category within the numbers area.
Action Syntax
random-uuid
This action takes no parameters and is used as a bare command.
Return Value
This function returns a
$result = random-uuid
Valid sizes
Examples
// Basic Usage
random-uuid