Array#sample doesn't exist on Ruby 1.8.