Skip to content

Team balance test

How far apart the strongest and weakest team end up, with a plain shuffle and with balancing.

Guide and details

The numbers come from running the team code on a fixed list of players, so anyone can repeat the run.

The counts below come from running the code of the tool a million times, not from a claim. They are in the HTML, and the run can be repeated. The p-value is the chance that a fair draw strays at least this far from the expected counts. Values above 0.05 are ordinary; a value near zero would point to bias.

Teams: how close “Balance by level” gets them

With “Balance by level”, the average level of the strongest team came out 0.37 above the weakest on average, against 2.82 for a plain shuffle: about 8 times closer, in 5,000 runs of each.

The same 12 players, with levels 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 1, 1, were split into 3 teams of four 5,000 times with a plain shuffle and 5,000 times with “Balance by level”. In each run the gap is the average level of the strongest team minus that of the weakest. The plain shuffle left a gap of 2.82 levels on average and 7.25 in its worst run. With balancing the average gap was 0.37 and the worst run 0.50.

SplitAverage gapWorst run
Plain shuffle2.827.25
Balance by level0.370.50

This is one list of players. A list with one player far stronger than the rest leaves a larger gap whatever the method, so read the numbers as what the method does with an ordinary spread of levels.

How the test was run

The test calls the same functions the buttons on this site call. The only change is the source of numbers: each spin reads a stream built from a numbered seed (SHA-256 in counter mode, as in the receipts) instead of crypto.getRandomValues, so anyone can repeat the run and get the same counts. It was run on 2026-12-03 with code fingerprint c6116527fd83, and the site’s own tests fail if the code changes and the numbers are not run again. A run this size cannot prove that a draw is free of bias. It shows that none appears at one million spins.

Why use Choose Tools

  • One source of randomness

    Every draw calls crypto.getRandomValues and throws away the values that would cause modulo bias. A test fails if Math.random ever appears in the source.

  • The result comes first

    The wheel, the coin and the dice pick the outcome before they move. The animation only shows what was drawn.

  • A slice is a chance

    Each option on the wheel is one slice, and the size of a slice is the chance of that option.

  • Lists stay on your device

    They are kept in this browser. Shared links carry the list after the #, a part the browser leaves out of requests to servers. There is no account.

  • Quiet by default

    Sound is off until you turn it on, and with “reduce motion” set in your system the result appears with no animation.

Questions and answers

Does a passing test prove the draw is random?

No. A test of this size shows that no bias appears over a million draws. It cannot show that there is none. What stands behind the result is the method: numbers from crypto.getRandomValues in your browser, with any value that would favour an outcome thrown away and drawn again.

Why numbered seeds instead of the browser’s generator?

So the run can be repeated. Each draw reads a stream built from a numbered seed, and anyone who runs the script gets the same counts. The code path is the one the buttons use.

What is the gap between teams?

It is the average level of the strongest team minus the average level of the weakest, in the levels of the player list. A gap of zero would mean level teams, and the table shows how close each method gets on this list.