urn_simulation, a MATLAB code which simulates an experiment in which k colored marbles are drawn from an urn containing a total of n marbles. The quantity of interest is the number of marbles of each color.
The information on this web page is distributed under the MIT license.
urn_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.