awtk/Array.prototype.sample — pull request #3 by ashleygwilliams (2014-08-07 05:34:53+00:00)
Title: first pass at implementing sample(n)

logic:
- check if argument
- if argument, copy array
- create new arry for return selection
- loop n times ->
- create random index
- add random element to return selection array
- remove random element from array copy
- return selection arrray
- if no argument just return one element at random index