{"service":"random","version":"1.0.0","title":"Random numbers","description":"Use when you need a random number generator, dice rolls, a coin flip, a uuid or random bytes that no one can predict. Do not use for verifiable on-chain randomness (VRF) or reproducible seeded sequences. Returns JSON with cryptographically secure random values: integers in a range, dice rolls, coin flips, UUIDs or hex bytes, from the Workers Web Crypto CSPRNG for 0.005 USDC per call. Typical response time 500 ms (p95). Category: Infrastructure.","paid":{"method":"POST","url":"https://x402-gateway.blackwoodstate8.workers.dev/v1/random","scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"5000","amountUsdc":"0.005","payTo":"0x60DdC7528FBEe16279C3ae7aC3647989CD714A11","maxTimeoutSeconds":60},"input":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["integer","dice","coin","uuid","bytes"],"description":"integer (count values between min and max), dice (count rolls of a die with sides faces), coin (count flips), uuid (count UUID v4) or bytes (length random bytes as hex)"},"count":{"description":"How many values (1-100, default 1); ignored for bytes","type":"integer","minimum":1,"maximum":100},"min":{"description":"integer: lowest value, inclusive (default 1)","type":"integer","minimum":-1000000000,"maximum":1000000000},"max":{"description":"integer: highest value, inclusive (default 100)","type":"integer","minimum":-1000000000,"maximum":1000000000},"sides":{"description":"dice: faces of the die (default 6)","type":"integer","minimum":2,"maximum":1000},"length":{"description":"bytes: how many random bytes (1-256, default 32)","type":"integer","minimum":1,"maximum":256}},"required":["kind"]},"example":{"kind":"dice","count":2,"sides":6}},"output":{"schema":{"type":"object","properties":{"kind":{"type":"string"},"values":{"type":"array","items":{"type":["number","string"]}},"sum":{"type":["number","null"]},"generatedAt":{"type":"string"},"source":{"type":"string"},"next":{"type":"object","properties":{"service":{"type":"string","description":"Service id of the suggested next paid call"},"tool":{"type":"string","description":"MCP tool name of the same call"},"method":{"type":"string","enum":["GET","POST"]},"url":{"type":"string","description":"Paid route of the next call"},"useWhen":{"type":"string","description":"When the next call is the right one"},"sample":{"type":"string","description":"Free fixed sample of the whole family"}},"required":["service","tool","method","url","useWhen","sample"],"additionalProperties":false,"description":"Suggested next paid call in the same family (call it in a loop when the task continues)"}},"required":["kind","values","sum","generatedAt","source"],"additionalProperties":false},"example":{"kind":"dice","values":[4,1],"sum":5,"generatedAt":"2026-10-17T16:48:06.750Z","source":"crypto.getRandomValues (Cloudflare Workers CSPRNG)"}},"mcp":{"url":"https://x402-gateway.blackwoodstate8.workers.dev/mcp","tool":"blackwood_random_generate"},"openapi":"https://x402-gateway.blackwoodstate8.workers.dev/openapi.json","status":"https://x402-gateway.blackwoodstate8.workers.dev/status.json"}