Nice work. Take a look at Array#sample http://www.ruby-doc.org/core-2.0/Array.html#method-i-sample or Kernel#rand for a simpler approach to generating the random number.