Lua math.random não funciona

Então, estou tentando criar uma coisinha e procurei por todos os lugares procurando maneiras de gerar um número aleatório. No entanto, não importa onde eu teste meu código, isso resulta em um número não aleatório. Aqui está um exemplo que eu escrevi.

local lowdrops =  {"Wooden Sword","Wooden Bow","Ion Thruster Machine Gun Blaster"}
local meddrops =  {}
local highdrops = {}

function randomLoot(lootCategory)
    if lootCategory == low then
        print(lowdrops[math.random(3)])
    end
    if lootCategory == medium then

    end
    if lootCategory == high then

    end
end

randomLoot(low)

Onde quer que eu teste meu código, recebo o mesmo resultado. Por exemplo, quando eu testo o código aquihttp://www.lua.org/cgi-bin/demo Ele sempre acaba com o "Ion Thruster Machine Gun Blaster" e não randomiza. Para esse assunto, testar simplesmente

random = math.random (10)
print(random)

me dá 9, tem algo que eu estou perdendo?

questionAnswers(1)

yourAnswerToTheQuestion