“Lua Math.Random” Respostas de código

como obter um número aleatório em lua

local randomNumber1 = math.random(1, 10) --Returns a number between 1 and 10.
local randomNumber2 = math.random(10) --Also returns a number between 1 and 10.

print(randomNumber1, randomNumber2) --OUTPUT EXAMPLE: "6, 8"
Adxm

Número aleatório da Lua

local number = math.random(1, 10)
# change 1 to be the smallest possible number
# change 10 to the be the biggest possible number
panda

Lua Math.Random

local randomNumber = math.random(100)

print(randomNumber)
Red Team

Respostas semelhantes a “Lua Math.Random”

Perguntas semelhantes a “Lua Math.Random”

Procure respostas de código populares por idioma

Procurar outros idiomas de código