Product SiteDocumentation Site

Chapter 17. Random functions Tapset

function::randint — Return a random number between [0,n)
These functions deal with random number generation.

Name

function::randint — Return a random number between [0,n)

Synopsis

function randint:long(n:long)

Arguments

n
Number past upper limit of range, not larger than 2**20.