Random, Value
Random, 100

Random returns a value from 0 to the Value – 1. So the line:

Set myVar to Random, 100

makes myVar set to a random number from 0 to 99.