Random Draw
random_drawProvably fair random draws for giveaways, raffles, games and A/B assignment. Pick winners from a list (unique or with replacement, optional weights), shuffle a list, split people into balanced teams, draw integers in a range, or roll dice ("3d6+2", "4d6kh3"). Randomness is HMAC-SHA256(serverSeed, clientSeed:nonce:counter) with unbiased rejection sampling and Fisher–Yates; the response publishes the server seed, its SHA-256 commitment and the algorithm so anyone can re-run and verify the draw. Supply serverSeed + clientSeed to reproduce a previous draw exactly. Price: $0.002 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/random-draw
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "random_draw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | ||
| min | No | ||
| dice | No | Dice notation: NdS(+/-M), kh/kl to keep highest / lowest, e.g. "4d6kh3", "2d20kl1", "3d6+2" | 1d6 |
| mode | No | pick | |
| count | No | Winners (pick), numbers (integers), teams (teams) | |
| items | No | Entries (strings / numbers / objects) for pick, shuffle, teams; max 10,000 | |
| nonce | No | ||
| unique | No | pick / integers without replacement | |
| weights | No | pick: non-negative weight per item (with unique=true, weighted sampling without replacement) | |
| clientSeed | No | Your seed (e.g. a public value fixed before the draw) | |
| serverSeed | No | Verification: re-run a draw with its published server seed (hex) |