A CoffeeScript port of the Python random module