in reply to removing arbitrary elements from an array?

This doesn't exacty answer you question, but arrays are designed so that it is easy to pop and push elements onto and off of the top of the deck. Why not shuffle the deck first, and deal off the top?
  • Comment on RE: removing arbitrary elements from an array?