I've seen other people doing this so I know it's possible, what I do to pick random values is some thing like this:
local items = {item1, item2, item3}
local random = math.random(1,3)
local item = nil
if random == 1 then
item = items[1]
end
if random == 2 then
item = items[2]
end
if random == 3 then
item = items[3]
end
But it takes a long time to do is there any better way I can get a random value from a table?

3 comments
ooh i feel dumb now
Haha, no problem, that is what this site is for!
Making people feel dumb.