This is an old revision of the document!
⇐ Index
randInt(0 10) ->randi
Returns a random integer from a range of two numbers Inclusive of the lower number, but exclusive of the higher number. A workaround for between 0 and 10 both inclusive is in the example below. It is to do 0 11 RandInt, so 11 will exclude but 10 will include [basically, 0 10 1 add RandInt]
# get a random integer between 0 and 10 (both numbers inclusive) RandInt(0 11) # # or # RandInt( 0 10 add (1)) # functionally equivalent.
⇐ Index