Thread
:
Picking a random entry out of a table/list?
View Single Post
12-17-20, 10:19 AM
#
3
Krainz
A Wyrmkin Dreamwalker
Join Date: Oct 2016
Posts: 57
So if it's a list of 15 entries, then I should use
Lua Code:
print
(
SongList
[
math.random
(
15SongList
)
]
)
;
?
Or am I overthinking it and #SongList is fine as it is?
Krainz
View Public Profile
Send a private message to Krainz
Find More Posts by Krainz