Random numbers
blackwood_random_generateUse 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"kind": "<kind>"
},
"name": "blackwood_random_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | integer: highest value, inclusive (default 100) | |
| min | No | integer: lowest value, inclusive (default 1) | |
| kind | Yes | 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 | No | How many values (1-100, default 1); ignored for bytes | |
| sides | No | dice: faces of the die (default 6) | |
| length | No | bytes: how many random bytes (1-256, default 32) | |
| response_format | No | concise (the default when omitted) keeps the JSON short: long fields such as base64 images or audio come back as separate image/audio content blocks and other long strings are cut with a marker; detailed returns the full JSON |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||