Use when you need a random number generator, dice rolls, a coin flip, a uuid or
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.
Answeringour last check, 2026-10-18
1 of 1checks answered this week
1290 msmedian answer time
$0.005listed price per call
$0.005price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://x402-gateway.blackwoodstate8.workers.dev/v1/random
| Category | Market data |
|---|---|
| Provider host | x402-gateway.blackwoodstate8.workers.dev |
| Networks | eip155:8453 |
| Payment schemes | exact, upto |
| Self-reported calls, 30 days | 5 from 2 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-10-18 | valid payment request | 402 | $0.005 | 1290 ms |
Example input (from the provider)
{
"body": {
"count": 2,
"kind": "dice",
"sides": 6
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"count": {
"description": "How many values (1-100, default 1); ignored for bytes",
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"kind": {
"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)",
"enum": [
"integer",
"dice",
"coin",
"uuid",
"bytes"
],
"type": "string"
},
"length": {
"description": "bytes: how many random bytes (1-256, default 32)",
"maximum": 256,
"minimum": 1,
"type": "integer"
},
"max": {
"description": "integer: highest value, inclusive (default 100)",
"maximum": 1000000000,
"minimum": -1000000000,
"type": "integer"
},
"min": {
"description": "integer: lowest value, inclusive (default 1)",
"maximum": 1000000000,
"minimum": -1000000000,
"type": "integer"
},
"sides": {
"description": "dice: faces of the die (default 6)",
"maximum": 1000,
"minimum": 2,
"type": "integer"
}
},
"required": [
"kind"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"additionalProperties": false,
"properties": {
"generatedAt": {
"type": "string"
},
"kind": {
"type": "string"
},
"next": {
"additionalProperties": false,
"description": "Suggested next paid call in the same family (call it in a loop when the task continues)",
"properties": {
"method": {
"enum": [
"GET",
"POST"
],
"type": "string"
},
"sample": {
"description": "Free fixed sample of the whole family",
"type": "string"
},
"service": {
"description": "Service id of the suggested next paid call",
"type": "string"
},
"tool": {
"description": "MCP tool name of the same call",
"type": "string"
},
"url": {
"description": "Paid route of the next call",
"type": "string"
},
"useWhen": {
"description": "When the next call is the right one",
"type": "string"
}
},
"required": [
"service",
"tool",
"method",
"url",
"useWhen",
"sample"
],
"type": "object"
},
"source": {
"type": "string"
},
"sum": {
"type": [
"number",
"null"
]
},
"values": {
"items": {
"type": [
"number",
"string"
]
},
"type": "array"
}
},
"required": [
"kind",
"values",
"sum",
"generatedAt",
"source"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}