Source:
def random(min, max)
    min + rand(max - min)
end

Generate a random number from a range

Pythoneer 6 years ago