Merged by r34210. Thanks.
Shouldn't a.sample #=> 7
(not an array)?
fark... My first commit to ruby and I messed it up. :(
New pull request sent that fixes it... Sorry everyone.
no worries. everyone messes up every once in a while.
i just happened to see it while passing through, and i was happy to learn (relearn?) that the #sample method exists.
a = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
a.sample #=> [7]
a.sample(4) #=> [6, 4, 2, 5]