Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Funzione statica Condiviso Nativa

math.random

Generates pseudo-random numbers uniformly distributed

Non ancora tradotto

Sintassi

Lua
math.random(m, n)

Parametri

Nome Tipo Predefinito Descrizione
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.

Valore restituito

  • number