lundi 17 août 2015

Lua Random Numbers Output the Same Every Run

Very simple question, and the answer will probably be even simpler. Why do the runs of this function output the same number every time, and how would I fix?

function randomNumber()
    number = math.random()
    print(number)
end

randomNumber()
randomNumber()




Aucun commentaire:

Enregistrer un commentaire