Macro Scheduler 15

Random

Random>Range,Result

 

Returns a random number within the specified range where 0 <= Result < Range.

 

The seed is set automatically and is stored in the RND_SEED variable.  It is possible to set the seed programmatically by modifying the value of RND_SEED.

 

Result is a variable in which the result is stored.

 

Abbreviation : RAN

 

Example

 

Random>6,DiceResult

Let>DiceResult=DiceResult+1

Message>You threw a %DiceResult%