Random integer number
random max
(random min max)
(random min max n)
Returns a random integer number from the range <0; max) or <min; max).
If n is specified then n-element array of random numbers is returned.
Example:
print random 10
print (random 5 10)
Output:
4
5
See also:
Table of Content