This isn't a game, but rather the foundation for creating some card games. Routines for creating a new (ordered) deck, shuffling (full randomization), and some formulas for determining the suit and value of a card if given the card number from 1 to 52.
Card images from Windows. See inside for notes on what each part of script does.