rand with range not working on heroku as ruby 1.8 not 1.9