nanos world API Reference Unofficial documentation
Static function Shared Native

math.random

Generates pseudo-random numbers uniformly distributed

Syntax

Lua
math.random(m, n)

Parameters

Name Type Default Description
m number If m is the only parameter: upper limit. If n is also provided: lower limit. If provided, this must be an integer.
n number Upper limit. If provided, this must be an integer.

Returns

  • number