Just practicing tables, I want to know how to get a random letter in my table and print it but I have no idea how to do it. I have tried using math.random but is it the way I am using it?

Script:
letters = {“A”, “B”, “C”, “D”}

for i,v in pairs(letters) do
print(math.random)
end

That is great! Good luck with learning more about tables. If you want a quick explanation as for what I did works, I basically just index the place in line of a random number from 1 to the amount of items inside of the table. If you do print(letters[1]), it will say “A”. So what I am doing is indexing a random number from the amount of values there are in the table to print it. Hope this helps, good luck on your journey!