Snippets > Misc

Getting a random number in a range

function randomBetween(min, max)
    return math.random() * (max - min) + min
end