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
`var randNum` should be specified at the top of the function body.