At each iteration, one of the balls is chosen uniformly at random, and swapped to the opposite urn.

The "state" is the number of balls currently in Urn #1.

Does the state converge in probability to some distribution?

The applet accepts the following keyboard inputs. (You may need to "click" on the applet first.)

- Use the numbers '0' through '9' to set the animation speed level higher or lower.
- Use 'r' to restart the simulation.
- Use '+' and '-' to increase/decrease the number of balls (and restart).

Applet by Jeffrey S. Rosenthal (contact me). See also my Applets Page / Home Page