Sub topic 2
Input Randomness vs Output Randomness
Assume 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.
The two kinds of randomness
Input randomness changes the situation before the player makes a decision. The player receives a random hand of cards, encounters a random enemy, or sees a random map. The player then decides how to respond.
Output randomness happens after the player chooses an action. The player selects an attack, and a die roll determines whether it hits. The player chooses a chest, and a loot table determines the reward.
The difference is not whether the game uses chance. Both systems use chance. The difference is whether the random event shapes the decision or resolves the decision.
import random
rng = random.Random(10)
# Input randomness: the player receives a random hand.
deck = ["attack", "defend", "heal", "scout"]
hand = rng.sample(deck, k=2)
print("Choose from:", hand)
# Output randomness: the player has already chosen "attack".
attack_roll = rng.randint(1, 6)
print("Attack result:", attack_roll)Comparing player agency
Player agency is the player's ability to make choices that affect the outcome.
Input randomness usually gives the player more room to adapt. A weak hand might still be useful if the player recognizes a good combination. A random enemy can make the player change position or save resources. The uncertainty appears before the decision, so information and planning can matter.
Output randomness creates suspense and can make a simple action exciting. It also creates a risk that a good decision produces a bad result. If the failure is costly and the player had no way to reduce the risk, the game may feel arbitrary.
| Design question | Input randomness | Output randomness |
|---|---|---|
| When does chance appear? | Before the decision | After the decision |
| Main player skill | Adapting and planning | Choosing risk and managing consequences |
| Common strength | Creates varied problems | Creates tension during resolution |
| Common failure | A draw gives no useful options | A good choice fails without mitigation |
A useful rule is to put randomness before decisions when you want players to solve changing problems. Put randomness after decisions when you want players to commit to risk and experience suspense.
Combining both types
Many strong designs use both. A player may draw a random set of tools, choose one, and then roll to determine the result. The input creates a distinct problem. The decision expresses skill. The output adds uncertainty.
The player should usually have at least one way to respond to an unfavorable roll. Examples include spending a resource, changing the target, accepting a smaller reward, or preparing before the roll. These choices turn output randomness into a risk decision rather than a pure verdict.
Choosing the placement
Use input randomness when:
- You want replayable situations.
- Players can compare options and adapt.
- The game teaches planning under constraints.
Use output randomness when:
- You want suspense at the moment of resolution.
- The action has a meaningful risk.
- Players can mitigate, recover from, or learn from failure.
Exercise
A player draws three random spells, chooses one, and rolls to see whether it succeeds. Which parts are input randomness and which part is output randomness?
Show answer
Drawing the three spells is input randomness because it happens before the choice. The success roll is output randomness because it happens after the player chooses a spell.