Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

roblox how to use math.random

local randomNumber = math.random(0, NUMBERLIMIT) -- Replace NUMBERLIMIT with a random number
print(randomNumber)
local string = {
"Mom",
"Dad"
}
local randomString = string(math.random(0, #string))
print(randomString)
 
PREVIOUS NEXT
Tagged: #roblox
ADD COMMENT
Topic
Name
7+7 =