← Back to Command Directory ← Back to Home

/random

Generates random values.

Syntax

/random value <min> <max>
/random roll <max> [seed]

Parameters

NameRequiredDescription
min/maxYesRange for value.
seedNoOptional seed for repeatable results.

Examples

/random value 1 10
/random roll 6

Notes

Version Differences

Java-only in current editions (newer versions).

Related Commands