Whether a lottery is fair can be defined in mathematical terms rather than by feel. This article explains what amidakuji guarantees and what it does not, with as few formulas as possible.

Each horizontal line simply swaps the destinations of two neighboring vertical lines. However many lines there are, the whole ladder is a sequence of swaps, which in mathematical terms is a permutation.
A permutation is a bijection, so no matter how the lines are drawn, everyone reaches a different goal. Duplicates and gaps cannot happen. Unlike paper slips, there is no room for a preparation mistake.
The tracing rule is fixed, so the same ladder always gives the same result. Each participant can follow their own line from top to bottom and confirm it.
One-to-one correspondence and equal probability are different properties. Depending on how the lines are drawn, some bias remains.
When lines are added at random, a small number of lines makes it more likely to end up directly below the start or close to it. The effect is strongest for the outer lines.
Adding lines brings the distribution closer to uniform, but the number needed grows quickly with the number of people. Research on the shuffle that swaps adjacent pairs puts the number of swaps needed for a near-uniform result on the order of the cube of the number of people times its logarithm. With the number of lines people can draw by hand, a large amidakuji is hard to make uniform.
Each horizontal line flips the parity of the order (even or odd permutation). If the number of lines is fixed in advance, only half of all orders can be reached, so the probabilities cannot be exactly equal.
Assigning starting positions at random cancels this bias. If nobody knows their vertical line until just before the draw, nobody can pick a favorable position by looking at the ladder. Amida-san randomly reorders participants when the draw starts and then traces the lines.

| Method | Equal probability | One-to-one | Verifiable by participants |
|---|---|---|---|
| Amidakuji (paper) | Depends on how lines are drawn | Always | Yes |
| Paper slips | Holds if prepared correctly | Can break through preparation mistakes | Must trust the preparer |
| Digital roulette or random numbers | Depends on implementation | Depends on design | Difficult |
| Rock-paper-scissors | Biased by human habits | Ties can repeat | Yes |
Most digital random numbers come from a pseudorandom number generator (PRNG). It produces numbers by a fixed calculation, so anyone who knows the internal state (seed) can predict the result. Participants also cannot inspect the mechanism, which easily breeds distrust.
In theory the best strategy in rock-paper-scissors is to play each hand 1/3 of the time, but people cannot choose truly at random, and ties increase with more players.
For choosing between methods, see the lottery method comparison.
Repeat the lottery many times and measure how far the count of each outcome is from the expected count.
χ² = Σ [(observed - expected)² / expected]
Here is an example with 5 outcomes drawn 100 times.
| Outcome | Observed | Expected | (O-E)²/E |
|---|---|---|---|
| A | 22 | 20 | 0.2 |
| B | 19 | 20 | 0.05 |
| C | 18 | 20 | 0.2 |
| D | 21 | 20 | 0.05 |
| E | 20 | 20 | 0 |
| Total | 100 | 100 | 0.5 |
The critical value for 4 degrees of freedom at the 5% level is 9.49. Since χ² = 0.5 is smaller, there is no evidence of bias.
Shannon entropy turns randomness into a number.
H = -Σ [P(i) × log₂ P(i)]
It reaches its maximum, log₂ n, when all n outcomes are equally likely. For 5 outcomes that is about 2.32.
It depends on the tool. Check whether the mechanism is public and whether it uses a cryptographically secure random number generator (CSPRNG). See lottery security and privacy for details.
For equal probability alone, a true random number generator (TRNG) based on physical phenomena is the best in theory, but participants cannot verify it. The value of amidakuji is that the one-to-one result is certain and anyone can check it.
Amidakuji always produces a one-to-one result and anyone can verify it. Drawing lines alone does not make the probabilities equal, though, so it needs something like random assignment of starting positions.
See also what amidakuji is.
Experience fair and transparent drawing with our simple and easy-to-use online ladder lottery tool.