Name | Random |
Syntax | random [<commands>] |
Short Description | Selects a random choice from the following script commands. |
Full Description | The random command picks one of the following script command and skips all the other script commands that are in its section.
Commands like "repeat 1" or "if true" can be used to group together a sublisting of commands to execute together (as a way to get around the 1-command limit). If wanting to choose a random long set of commands, consider instead using choose with util.random.int.to |
Related Tags | <entry[saveName].possibilities> returns an ElementTag of the possibility count.
<entry[saveName].selected> returns an ElementTag of the selected number.
|
Usage Example |
|
Usage Example |
|
Group | queue |
Source | https://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/scripts/commands/queue/RandomCommand.java#L24 |