> The Kernel#rand(-5..15) version wouldn't suffer from this problem. It
> would be a good idea to add this to ruby core, because this
> functionality is something, that is needed very often.
yes, this was exactly my point
if we already had Kernel#rand with Range object, people wouldn't
implement their own methods, making scripts shoter and slightly more
portable (regarding copy&paste other code)