previous | index | next

List Processing Application: Shuffling Cards

Problem:
How many times do you have to (perfectly) shuffle a deck of cards in order to get the original order back again?

Solution: write a procedure to model the shuffling of cards and test it.


previous | index | next