in Ruby: http://www.ruby-doc.org/core-1.9.3/Array.html#method-i-sample