math.random - oblerion/love2d.js Wiki

call

math.random(min,max) math.random(max)

parameter

return

return at random between min and max or 0 to max.