Skip to main content

Simulations of fair N-sided die tosses and other games of chance involving random number generation.

Questions about simulating games of chance involving the generation of integers. Usually, a discrete uniform distribution over {1, 2, 3, 4, 5, 6} is desired. However, fair dice can take the form of any of the Platonic solids, with 4, 6, 8, 12, or 20 faces. In a broader sense, tossing coins or spinning wheels of fortune can be thought of a generalization of this concept, too.

Here's a UC Berkeley-sponsored instruction booklet on games of chance, an excellent resource for learning the math and statistics behind games of chance.