About Spin Picker

Spin Picker is a set of free random pickers: a wheel, a team generator, a name picker, dice, a coin and a number generator. Every result comes from your browser’s cryptographic random number generator, and every pick is exactly as likely as every other. Teachers pick students, friends pick restaurants, teams pick captains, and nobody can tilt the result.

Where the randomness comes from

All draws use crypto.getRandomValues, part of the Web Cryptography API that every modern browser supports. The W3C specification describes it as a “cryptographically strong pseudo-random number generator seeded with truly random values.” It is the same generator browsers use for security work, which makes it far less predictable than Math.random. Each request returns fresh random 32-bit numbers, from 0 to 4,294,967,295.

Source: W3C Web Cryptography API, section 10, Crypto interface and section 10.1.1, the getRandomValues method.

Turning random numbers into a fair pick

A 32-bit random number has 4,294,967,296 possible values. To pick 1 of 6 entries, the obvious move is to divide by 6 and keep the remainder. But 4,294,967,296 ÷ 6 = 715,827,882 with 4 left over, so four of the six remainders would each have one extra way to happen. That is called modulo bias. For 6 entries it is tiny; for some ranges, such as 3,221,225,472 numbers, the plain remainder would make the first third of the range twice as likely as the rest.

Spin Picker uses rejection sampling instead. It takes the largest multiple of 6 that fits, 715,827,882 × 6 = 4,294,967,292, and if a random number lands at or above it (one of the top 4 values), it throws that number away and draws again. Every remaining value maps to exactly one result, so all six results have exactly the same chance. A redraw happens about once in a billion draws for 6 entries, so it costs nothing you can notice. Ranges wider than 32 bits use a 53-bit random number with the same rule.

Shuffles, teams and draws

To shuffle a list, Spin Picker uses the Fisher–Yates shuffle: walk from the last item to the first and swap each one with a randomly chosen item at or before it, each choice made with the fair method above. Every possible order comes out equally often. The team generator shuffles the names once and deals them into teams like cards, which keeps team sizes within one person. The name picker and the no-repeat number generator use the first steps of the same shuffle to draw without putting names back.

The wheel decides before it spins

When you press Spin, the winning slice is drawn first. The wheel then turns several full times and stops inside that slice. The spin length, the starting position and the moment you click have no effect on who wins, and with reduced motion turned on in your device settings the wheel simply jumps to the result.

How it is tested

Before each update, automated tests draw tens of thousands of results from every tool and run a chi-square test, a standard check of whether outcomes are as evenly spread as chance allows. The tests cover wheel picks, dice faces and totals, coin flips, shuffle orders, team placement and number ranges. A test also confirms that the plain remainder method fails the same check, so the check is strong enough to catch bias. Other tests make sure the wheel always stops on the slice that was drawn, for every wheel size up to 100 entries.

Your lists stay with you

Names and numbers you type are used only on the page in your browser. They are never sent to a server. The wheel can keep your list in this browser if you ask it to, and its Forget saved list button removes it. See the privacy policy for details, including how ads work.

Free to use

The tools are free and need no sign-up. Ads from Google AdSense pay for keeping the site online. If you spot a mistake, the method above is documented so you can check it yourself; we fix errors as soon as we find them.