Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

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")
 
PREVIOUS NEXT
Tagged: #genarating #random #number
ADD COMMENT
Topic
Name
1+6 =