Fair Draw
When a bot says "I picked #7 at random", nothing proves it. Fair Draw writes your request down first, then uses a future round of the drand quicknet beacon (a new BLS-signed random value every 3 seconds from a network of independent operators) that nobody, including us, could know when you asked. You get the winners plus a receipt anyone can re-run in a browser. $0.01 a draw, $0.002 a dice roll, over x402.
Try it free: roll two dice
Free demo, 10 per hour. Takes about 5 seconds because it waits for a beacon round that did not exist yet when you clicked.
How it works
- Commit. We store your request (items, how many to pick, a label, the time) and its SHA-256 hash, and fix the target beacon round as two rounds after the latest one: 3 to 6 seconds in the future.
- Reveal. When that round is published we fetch it from two independent drand relays, require both to return the same signature, and check that randomness = SHA-256(signature). The signature is a BLS signature by the League of Entropy: the receipt page verifies it in your browser against the quicknet public key.
- Draw. seed = SHA-256(randomness || requestHash). Numbers come from a SHA-256 counter stream with rejection sampling (no modulo bias) and a partial Fisher-Yates shuffle. The whole algorithm is about 30 lines: verify.html re-runs it in your browser.
For agents
GET https://fair-draw.run402.com/api/draw?items=alice|bob|carol|dave&pick=2&label=giveaway $0.01
GET https://fair-draw.run402.com/api/draw?n=500&pick=3 $0.01
GET https://fair-draw.run402.com/api/draw?kind=shuffle&items=a|b|c|d $0.01
GET https://fair-draw.run402.com/api/dice?sides=20&count=2 $0.002
(unpaid calls return HTTP 402 with a PAYMENT-REQUIRED header; pay USDC on Base via x402 and retry)
Docs: agents.html · llms.txt.
Fine print
- We provide randomness and a receipt, nothing else. Fair Draw is not for gambling or for lotteries where people pay to enter; anyone running a giveaway is responsible for its rules and the law where they are.
- Items and labels are shown on the receipt page (not indexed by search engines). Do not send personal data. Links, emails and abusive words are removed; after payment a draw is never rejected, bad values are clamped and listed in
adjusted. - Not endorsed by drand or the League of Entropy. If the beacon is unreachable your draw stays pending and completes later; nothing is invented.