{"slug":"x402-donnyautomation-com-random-0d74e9","title":"Cryptographically secure randomness for agents that are deterministic or sandbox","host":"x402.donnyautomation.com","method":"GET","resource":"https://x402.donnyautomation.com/random","category":"other","description":"Cryptographically secure randomness for agents that are deterministic or sandboxed. Two modes: raw bytes (?bytes=1..1024, default 32, clamped) returning hex and base64url; or uniform integers (?min= and ?max= together, optional ?count=1..1000) rejection-sampled so there is no modulo bias. Errors: 40","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":1629,"reported_calls_30d":2,"reported_payers_30d":2,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"bytes":"32"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"bytes":{"description":"Random bytes to return, 1..1024 (default 32). Returned as hex and base64url.","type":"string"},"count":{"description":"How many integers, 1..1000 (default 1). Integer mode only.","type":"string"},"max":{"description":"Upper bound (inclusive) for integer mode. Must be greater than min.","type":"string"},"min":{"description":"With max: return uniform integers in [min, max] inclusive instead of bytes.","type":"string"}},"required":[],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":1629,"error":null}],"description_full":"Cryptographically secure randomness for agents that are deterministic or sandboxed. Two modes: raw bytes (?bytes=1..1024, default 32, clamped) returning hex and base64url; or uniform integers (?min= and ?max= together, optional ?count=1..1000) rejection-sampled so there is no modulo bias. Errors: 400 bad_bytes for a non-integer, bad_range when max is not greater than min, range_too_large. Generated server-side, and the response says so - if nobody may have seen it, generate it yourself.","last_updated":"2026-09-14T08:54:34.127Z","schemes":["exact"]}