full_deck_simulation, a MATLAB code which simulates a process in which a random card is drawn from a deck of 52, and then replaced, continuing until every card has been seen at least once.
A New York artist carried out an equivalent project by wandering the streets and picking up single playing cards that had been thrown away. Once a full, though motley, deck had been collected, it was displayed in a gallery. (Of course, many of the collected cards were duplicates, and thus didn't make the show!)
This is a version of a well-known problem in probability known as the coupon collector's problem.
The information on this web page is distributed under the MIT license.
full_deck_simulation is available in a MATLAB version and an Octave version and a Python version.
matlab_simulation, a MATLAB code which uses simulation to study card games, contests, and other processes which have a random element. Usually, the purpose is to try to predict the average behavior of the system over many trials.