Lua Tables

I’m having trouble using tables in Lua which I’m attempting to use as I would an array in actionscript.

I have a table populated with letters of the alphabet and I want to pull a random selection of letters from this table to be placed into another table.

local INT_LETTERS = { “A”, “B”, “C”, “D”, etc }
local INT_LETTERS_LENGTH = #( INT_LETTERS )

in a loop…

local uniqueLetter = INT_LETTERS[math.random( INT_LETTERS_LENGTH )]

My plan to avoid letter duplication was to remove the randomly selected letter from the INT_LETTERS table on each loop through. However ‘table.remove’ requires a number corresponding to the position in the table where the removal will take place. How do I determine the position in the table of each randomly chosen letter?

Or am I approaching this problem the wrong way?
[import]uid: 5818 topic_id: 4713 reply_id: 304713[/import]