Navigation :
random.integer
random.integer(max: number) 🡒 number, pure function
Returns an integer in the segment $[1,n]$ where $n$ is the inclusive upper bound.
table T = with
[| 1 as Max |]
[| 5 |]
[| 50 |]
[| 500 |]
T.K = random.integer(T.Max)
show table "" a1b5 with T.Max, T.K
The argument of random.integer
must be greater or equal to 1.