This program is a simplified version of the program used for the simulations
described in Chapter 4. Here, you choose the number of dice and the number of
steps. The program starts with an all-zero configuration. At each step the
program chooses a dice (either at random or sequentially) then flips it to get
either “zero” or “one” with probability . The program records the sum of the
dots on all the dice, and plots the sum as a function of the number of steps.
It is suggested that you start with a small number of dice; 4, 8, 10, 20 and
then go to 100 and 200. If you have a fast-working computer, you can go up to
1000 dice and 2000 steps. This will take some time but it is rewarding. Check
both the random and the sequential options. Follow the changes in the curve
when you increase the number of dice. Examine the smoothness of the curve, the
number of steps to reach the equilibrium line, and the number of times the sum
goes back to zero. Have fun and good luck.