Now, I'll explain here. A while ago, I figured out how to make it so that it chooses a random item inside a table, but I want to know what place it is in. Still confused? Here's some code that I made.
local testing = {"Hello world!", "Hi!", "Greetings!"}
local r = testing[math.random(1, #testing)]
print(r)
Now say this would pick the second item in the table ("Hi!"). Now it would print what the string says, but I want it to print on what place the table is on. What I mean by that is in that example, it is on the 2nd item in the table. Basically, I want to figure out how to get the place the random item picker is on.

3 comments
thanks!
np
Or: table.find(testing, r)