This command defines a random variable. There are two random variables that can be defined: rand0 and rand1.
The maximum random number that can be generated is 15.
|
Code Example |
Meaning |
|
rand0=12 |
Define random variable rand0 with a maximum value of 12. Generates numbers from 0 to 12. |
|
rand1=15 |
Define random variable rand1 with a maximum value of 15. Generates numbers from 0 to 15. |
Special Notes:
Random variables must be first declared in the [random] section of the program. For example:
[random]
rand0=12
rand1=15