**coin_simulation**,
a Python code which
looks at ways of simulating or visualizing the results of
many tosses of a fair or biased coin.

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

**coin_simulation** is available in
a MATLAB version and
an Octave version and
a Python version.

python_simulation, a Python 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.

- coin_simulation.py, the source code.
- coin_simulation.sh, runs all the tests.
- coin_simulation.txt, the output file.

- coin_biased_average.png
- coin_biased_barchart.png
- coin_biased_plot.png
- coin_biased_sign.png
- coin_biased_streak.png
- coin_biased_sum.png
- coin_uniform_average.png
- coin_uniform_barchart.png
- coin_uniform_plot.png
- coin_uniform_sign.png
- coin_uniform_streak.png
- coin_uniform_sum.png
- coins_uniform_average.png
- coins_uniform_plot.png
- coins_uniform_sum.png