Cryptographically secure randomness for agents that are deterministic or sandboxed
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.
10000 (raw units)
price
2
calls / 30d
2
unique payers
2026-09-14
updated
Provider
x402.donnyautomation.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x2740651e046c59aB2A6510401140643292d3a96F",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {
"bytes": "32"
},
"type": "http"
},
"output": {
"example": {
"base64": "n4bQgYhMfWWa…",
"bytes": 32,
"hex": "9f86d081884c7d65…",
"source": "node:crypto randomBytes (CSPRNG)",
"ts": "2026-08-01T00:00:00.000Z"
},
"type": "json"
}
},
"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"
}
}
}Use it
curl
curl "https://x402.donnyautomation.com/random" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://x402.donnyautomation.com/random");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://x402.donnyautomation.com/random")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/4926.json, and this resource appears in /discovery/resources and /discovery/search.