31. Monte Carlo Simulation

All generalizations are false, including this one.

—MARK TWAIN

Games often rely on random number generation to determine the events of the game. The Monte Carlo simulation is a method in mathematics in which results are gleaned from trials generated by random numbers. By using the random number generation and manipulation within spreadsheet software, you can use the Monte Carlo simulation to answer fairly complex questions about how a game will behave.

It is often cited that the Monte Carlo simulation is named after the roulette wheels of the Casino de Monte Carlo in Monaco. However, this is not entirely true. During World War II, scientists working on the atomic bomb needed to figure out a way to simulate neutron penetration ...

Get Players Making Decisions: Game Design Essentials and the Art of Understanding Your Players now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.