Drawing a fair raffle winner from a list of names
A school fair sold 84 raffle tickets, and each buyer's name is in a spreadsheet, one row per ticket. Someone who bought three tickets appears three times, which is right, because they should have three chances. Copy the names column, paste it here, and the list comes back in random order. The first name is the winner, the second gets second prize, and so on.
The fairness comes from two parts. The first is the method. The tool uses the Fisher-Yates shuffle, which goes through the list from the bottom up and swaps each line with a randomly chosen line at or above it. Simpler methods, such as sorting by a random number, can favour some orders over others. Fisher-Yates does not: with fair random numbers, all possible orders of the 84 tickets are equally likely.
The second part is the random numbers. Many web tools use Math.random, which is fast but not designed to be unpredictable. This tool uses the browser's cryptographic generator, the one used to make encryption keys. It also avoids a subtle bias: when a random number would make some positions slightly more likely than others, it is thrown away and a new one is drawn. The note under the result says how many lines changed place.
Do not be surprised if a few lines stay where they were. In a fair shuffle of 84 lines, on average about one line lands in its original place by chance. Press Shuffle again as often as you like; every press is a new, independent order. Other uses work the same way: putting quiz questions in a random order, choosing the order of speakers, or splitting a class into random groups by counting off the shuffled list.
The tool has honest limits. There is no seed, so nobody can produce the same order again to check it later. If you need proof, shuffle while people watch, or record the screen. It cannot know whether your list itself is fair, such as a name typed twice by mistake. It is not an audited system for draws that the law regulates. It takes up to 1 MB of text at a time.