I'm writing a script to draw cards. The basics are easy, although any suggestions as to how I can do it without a lengthy series of IF statements would be helpful.

What I REALLY need help with is the memory. I want the script to remember, until I tell it to reset, what cards have been drawn previously.

It's not playing cards, but playing cards make a good example. If the Ace of Spades is drawn, I want the script to remember that the next time it is called, and have no chance of drawing another Ace of Spades. When I enter the proper command, I want the deck to "shuffle", making all the cards available again.

Is this possible?

Longspeak