Have two lists, `A` and `B`. `A` contains all the unchosen objects, so starts off like your `myObjects` array and `B` starts empty. Pick an object from list `A`, and move it to list `B`. Over time `A` will get smaller, and `B` will get bigger. When you're done with an object, move it back from `B` into `A`. (Or, if you never want the object used again, into a new list `C` which stores the used objects.)
↧