If the table has a number entries and the first 5 are for one situation and the next 5 (or whatever) are for another situation then you could:
Lua Code:
if a then
PlaySoundFile(TableofOggs[random(1, 5)])
elseif b then
PlaySoundFile(TableofOggs[random(6, 12)])
elseif ...
end