Answers for "genarating random number"

Lua
0

genarating random number

local randomNumber = math.random(1,3)


if randomNumber == 1 do
    print("the number is 1")
    
elseif randomNumber == 2 do
    print("the number is 2")
elseif randomNumber == 3 do
    print("the number is 3")
Posted by: Guest on March-11-2022

Browse Popular Code Answers by Language