←The Captain's Chest Rules

The Captain's Chest

Check the draw

Every draw leaves a receipt. Paste one here and your own browser runs the draw again: the list of people, the random number and the winners. What you paste stays on this page. Nothing is sent anywhere.

A receipt is a short JSON file. The show posts one after each draw. Paste all of it, or choose the file.

How this works

First, the list of everyone in the draw is fixed, and its fingerprint is posted. The fingerprint is a short code that changes completely if one name or one chance on the list changes. At the same time, the show names a drand round: a random number that a group of independent organisations publish a minute or so later, and that nobody can know or change in advance. When that number comes out, a fixed formula turns it into the winner. Anyone can run the formula again here, on their own device, and get the same answer.

The exact formula
  1. The entrant list is sorted by id. Its fingerprint is the SHA-256 of one line per person: id, a tab, chances, a line break.
  2. For prize number i (the first prize is 0), take the SHA-256 of seed:fingerprint:i as a number and divide it by the total chances. Keep the remainder, r.
  3. Go down the list adding up chances. The first person whose running total goes past r wins that prize.
  4. That person comes off the list before the next prize is drawn.