Anyone have any idea why math.random is only returning 1? I've tried putting it to a variable (i.e; music.mood.happy[randomNumVar]) but that also only returns 1.
You could also use [wiki]love.math.random[/wiki] instead. LÖVE sets the random seed for love.math.random before love.load is executed, so you don't need to set a seed yourself if you use it.
slime wrote:You could also use [wiki]love.math.random[/wiki] instead. LÖVE sets the random seed for love.math.random before love.load is executed, so you don't need to set a seed yourself if you use it.