Suppose we want a deck of cards which the player can shuffle and draw from. Our first (rather tedious) task is merely to set up the deck as a table:
We're going to describe the higher numbers as face cards, so it helps to write a new "to say" phrase.
Now we get the shuffling of the deck from "sort in random order", so:
This will continue to work properly even as the deck is partially depleted. Speaking of which, suppose we want the player to be able to toss the cards one-by-one into a hat. They are going to need to be removed from the deck, so:
If we wanted to simulate a slightly more stimulating game, we could instead have a second table to represent the player's hand of cards and record each card drawn. That would get long for the purposes of example, however, so instead we will just admit that the player's life is an empty husk of existence:
Test me with "toss / again / again / again / again / again / again / again".
It has come to this: sitting on the bare floor of Lulu's apartment with nothing to amuse you but a deck of cards and the top hat from last year's act. You reckon fifty-two cardtosses are all that stand between you and the utter pointlessness of existence.
Once again you curse Lulu for running off with that joker.
You throw the deuce of clubs at the top hat, and hit.
You throw the seven of hearts at the top hat, and miss.
You throw the deuce of spades at the top hat, and miss.
You throw the eight of hearts at the top hat, and miss.
You throw the three of clubs at the top hat, and hit.
You throw the five of clubs at the top hat, and hit.
You throw the nine of clubs at the top hat, and hit.
You throw the three of spades at the top hat, and hit.