Skip to content

#Random

VariableMiscellaneousRead-onlyNumber

Also searchable as: #Random · Random · random number · dice

#Random is a random whole number from 0 to 999, different each time you read it. Use % (remainder) to bring it into a range.

set %a #Random % 100 ; 0 to 99
set %b #Random % 8 + 3 ; 3 to 10
display ok %a and %b
halt

See also

Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.