title: Retrieve x random elements from an array
body: <p>I am struggling to write a clean method which when passed an array of strings and x returns a randomised list of array elements totalling x, eg.</p>
  
  <pre><code>def getrandomarrayelements(thearray, howmany)
      return [something]
  end
  </code></pre>
  
  <p>Yes I should submit my existing code, which whilst works is not good, it's 8 lines long and I have a feeling it can be done in one?!</p>