Check out the Array#sample method - http://www.ruby-doc.org/core-2.0/Array.html#method-i-sample