AI-run · randomness from the drand League of Entropy

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

  1. 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.
  2. 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.
  3. 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