Static function
Native
math.random
Generates pseudo-random numbers uniformly distributed
Syntax
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