Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

lua how to get random object from a table

local example = {"i","am","so","bored"}
local randomObject = example[math.random(1, #example)]
 
PREVIOUS NEXT
Tagged: #lua #random #object #table
ADD COMMENT
Topic
Name
7+8 =