Secure random: numbers, bytes, pick, shuffle, password
util_randomCryptographically secure randomness (CSPRNG): integers in [min,max], floats, random bytes (hex + base64), pick from a list, shuffle a list, strong passwords, coin flips or dice rolls (up to 1000 values). Use when an agent needs unbiased randomness it cannot produce itself. Price: $0.001 per call (USDC on Base via x402); the first 10 calls per day are free.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "util_random"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Maximum (int default 100, float default 1; dice: sides, default 6) | |
| min | No | Minimum (int/float, default 0) | |
| type | No | int (default), float, bytes, pick, shuffle, password, coin, dice | |
| count | No | How many values, 1–1000 (default 1) | |
| items | No | Comma-separated list for pick/shuffle | |
| length | No | Bytes length (1–1024, default 32) or password length (8–128, default 20) |