01Chapter 1: Why games use randomnessRandomness gives a game outcomes that the player cannot fully predict. A die roll, shuffled card, enemy behavior, or loot drop can change what happens even when the player repeats a familiar action.3 min read
02Chapter 2: Input randomness vs output randomnessAssume you know basic percentages and arithmetic, understand common dice and card mechanics, and can read simple Python. This chapter uses those ideas to compare two places where randomness can enter a game.2 min read
03Chapter 3: Probability basics for designersAssume you know basic arithmetic with fractions and percentages, and you have seen dice, cards, and loot systems. This chapter focuses on the probability calculations you need before tuning a random mechanic.2 min read
04Chapter 4: Expected value: the average outcomeAssume you know basic percentages, fractions, and common game mechanics such as dice, cards, and loot drops. You should also be able to read simple Python code.2 min read
05Chapter 5: Distributions: why summed dice clusterAssume you know basic percentages and fractions, and that you have used dice in game mechanics. This chapter explains why rolling several dice produces a different pattern from rolling one die.2 min read
06Chapter 6: Variance and streaks: why short runs feel unfairAssume you know basic percentages, dice, cards, and simple Python. This chapter focuses on how random results vary around an average. It also explains why players may call a fair system “rigged” after a short unlucky run.2 min read
07Chapter 7: The gambler's fallacy and how players perceive chanceThis chapter assumes that you understand basic percentages, independent dice or card draws, and simple Python code. You should also know that a random event can have a known probability without having a predictable result.2 min read
08Chapter 8: Balancing skill and luckAssume you know basic percentages, dice and card mechanics, and can read simple Python. This chapter uses those ideas to decide how much control skillful play should have over random outcomes.2 min read
09Chapter 9: Keeping decisions meaningful under chanceAssume you know basic fractions and percentages, understand common dice and card mechanics, and can read simple Python. This chapter focuses on player agency: the degree to which a player's choices affect what happens.2 min read
10Chapter 10: Risk and reward as a design toolThis chapter assumes you can calculate simple probabilities and expected values. You should also know common game mechanics such as dice, cards, and resource costs.2 min read
11Chapter 11: Weighted random tablesAssume you know basic percentages, expected value, and common game mechanics such as dice and loot drops. This chapter shows how to turn those ideas into a weighted random table and how to avoid common design errors.2 min read
12Chapter 12: Shuffle bags: randomness with guaranteesAssume you know basic probability, can read simple Python, and understand independent random rolls. This chapter focuses on a shuffle bag, a system that draws from a fixed collection without replacement and refills it when empty.2 min read
13Chapter 13: Pity timers and bad-luck protectionThis chapter assumes you understand basic probability, expected value, weighted random tables, and variance. A pity timer is a rule that improves a player's chance after repeated failures. It protects players from an unusually long losing streak without making every reward certain.2 min read
14Chapter 14: Mitigating bad luck with catch-up and recoveryThis chapter assumes you understand basic probability, expected value, variance, weighted tables, and seeded random number generators. The goal is to control unlucky outcomes without removing meaningful uncertainty.2 min read
15Chapter 15: Pseudo-random number generatorsThis chapter assumes basic probability, familiarity with dice and card mechanics, and the ability to read simple Python. You will learn how games produce repeatable-looking randomness and how to control it during testing.2 min read
16Chapter 16: Seeds, replays, and reproducible bugsAssume you know basic probability, common game mechanics, and how to read simple Python code. This chapter focuses on a practical question: how can you make a random event happen the same way again?2 min read
17Chapter 17: Testing your design with simulationAssume you know basic percentages, expected value, variance, and simple Python. This chapter shows how to test a random mechanic before putting it in front of players.2 min read