[skip|else] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = The Variable returned by the random number generation.
<Var/Number> = The maximum number that you want generated as a random number, this will have 1 removed from it.
Returns a random number in the range of zero to <Var/Number> minus one.
The fact that it automatically subtracts one from the maximum makes it ideal to use for selecting random elements from an array, where <Var/Number> is the size of the array.
$rand.max size of array $this.array
$rand.index = random value from 0 to $rand.max -1
$selection = $this.array [$rand.index]
This will result in $selection being a random element from the array $this.array
- »» General Commands
<RetVar/IF> = random value from 0 to <Var/Number> - 1