Added Ruby 1.8 compatibility.
Merge pull request #13 from PatrickTulskie/master

rand compatibility fix for Ruby 1.8