DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+8 =
Submit