I'm trying to get a item randomly from a table. I have searched online but all the code I have found didn't work. My table looks like this:
section = {a, b}
love.graphics.newImage("/Images/a.png")
love.graphics.newImage("/Images/b.png")
love.graphics.draw(section[imath.random(#section)], x, y)
I need a random item from this table.