klyn.math.Random.randInt
method
public static randInt(min as Long, max as Long) as Long:
Description

Returns a random long integer in [min, max].

Parameters
ParameterDescription
minLower bound.
maxUpper bound.
Returns

A random long integer between min and max (inclusive).

Example
ticket = Random.randInt(1l, 1_000_000l)
print(ticket)