On an unrelated note, if you want a random element from an array,
there's already a method for that, Array#sample. (or #choice in
1.8.7).

-- Matma Rex