Ruby 1.8 doesn't have Random class