dueling_idiots, a Python code which contains the scripts used to illustrate Paul Nahin's "Dueling Idiots".
dueling_idiots is available in a MATLAB version and an Octave version and a Python version.
digital_dice, a Python code which contains the scripts used to illustrate Paul Nahin's "Digital Dice".
will_you_be_alive, a Python code which contains the scripts used to illustrate Paul Nahin's "Will You Be Alive 10 Years From Now?".
Paul Nahin,
Dueling Idiots and Other Probability Puzzlers,
Princeton, 2012,
ISBN: 978-0691155005.