Syntax
random(integer)
Description
The random() function will return a pseudo random number from 0 to integer-1
Example
a=[] foreach n in 1..10 { a=push(a, random(10)) } println(a) [2, 6, 7, 8, 0, 8, 6, 1, 6, 4]
random(integer)
The random() function will return a pseudo random number from 0 to integer-1
a=[] foreach n in 1..10 { a=push(a, random(10)) } println(a) [2, 6, 7, 8, 0, 8, 6, 1, 6, 4]