COINS
Loading coins
NEWS
Loading news
← Build tools

RANDOMNESS & RAFFLES / DRAW SIMULATOR

Randomize the moment. Make it replayable.

Prototype raffles, shuffled allowlists and randomized drops. Generate a draw, keep its seed, and replay the exact result before integrating an on-chain oracle.

Free beta demo. No wallet connection required.

Prototype the experience. Scope the oracle integration.

Unique winners

Draw without replacement from up to 500 unique addresses.

Replay the result

Export the seed, canonical participant list and versioned algorithm.

A path to an oracle

Scope a Switchboard integration for verifiable on-chain settlement.

OPEN THE TOOL

Try a random draw.

Start with the example. Adjust the inputs. Export the result.

Random draw

Simulate a winner selection with a reproducible seed.

Simulator · The operator can reroll or select a seed. This is not an oracle-verified public draw.

One address per line, up to 500. Duplicate entries are rejected. The prefilled addresses are examples.

Replay with a known seed

Leave empty to generate 32 cryptographically random bytes on the server.

Try a randomized allowlist or reward selection.
Every result includes its replay seed and participant list.

BUILD IT INTO YOUR APP

POST /api/build/random-draw

cURL · Request example
curl -X POST 'https://www.attn.money/api/build/random-draw' \
  -H 'Content-Type: application/json' \
  -d '{"participants":["HN5sexDdWmkBhF16gZx6vCRBUr5mncULmDT6rzLVrSr4","BPfsbKvfjXpYyQmizZEAYVjLncPep5L1JPTmwuzgaSPY","2bWVTYT2z1dX8WNnMwnkLuvZLcqAogb4JFa2ZzPEHjh4"],"winners":1}'
participants
1–500 unique Solana addresses, sorted canonically before drawing.
winners
Integer from 1–100, no larger than the participant count.
seed
Optional 64-character hexadecimal seed for replay. Omit to generate 32 random bytes.

Response contract

draw includes seed, sorted participants, participantsHash, ordered winners, algorithm and oracleVerified:false. drawHash hashes the versioned draw. The v1 algorithm uses SHA-256(seed bytes || u32be counter), starting at 0; reads u32be words, rejects values ≥ floor(2^32 / range) × range, and performs partial forward Fisher–Yates.

Invalid inputs return 400. JSON bodies are limited to 64 KB (413 if exceeded). Respect 429 and Retry-After; provider failures return 502 or 503. Limits and caches are per server process; a production pilot needs confirmed capacity.

BEFORE YOU INTEGRATE

The useful details.

Is this a verifiable randomness oracle?

No. This working prototype is a replayable simulator. A public on-chain draw needs an oracle-backed integration with a fixed eligibility set and settlement rules.

What does the Switchboard integration need?

An app program and state, a Switchboard randomness account, a committed eligibility set, verified commitment and reveal state, funded transactions and one-time settlement. Those pieces are not activated here.

What else can use the same draw?

Prototype randomized allowlist order, reward selections, reveal ordering or game mechanics. Use independent oracle verification where an outcome controls something of value.

Integration reference: Switchboard’s Solana randomness tutorial ↗. Oracle integration is not active in this demo.

MAKE IT PART OF YOUR PRODUCT

Bring a draw worth building.

Discuss an integration for your app, bot or launch. We’ll confirm the scope, usage and costs before a paid pilot.

Demo access is free. Paid keys and automatic billing are not active.

Discuss this integration ↗

KEEP BUILDING