util_random
True random numbers, picks, shuffles, dice and tokens — Real randomness for agents (language models are bad at it). mode=int (min, max, count up to 1000, unique=true for no repeats), float (min, max, decimals), normal (mean, sd), pick or sample (items= list separated by newlines, | or commas; count, replace=true, weights= one number per item), shuffle (items=), coin (count), dice (roll= standard notation: 3d6+2, 2d20kh1 advantage, 4d6dl1, d%, 1d8-1d4; count up to 100 rolls; returns every die, kept dice, total, min and max possible), token (length, alphabet hex|base64url|base58|alnum|alpha|lower|numeric|crockford or chars=; entropy bits), date or datetime (start, end, weekdays=true). Mode is inferred from roll= or items= if omitted. Uses crypto.getRandomValues with unbiased rejection sampling; pass seed= for reproducible results (sfc32 PRNG - same seed, same output; never use seeded output as a secret). Offline. Price: $0.001 USDC (Base, via x402).
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": {
"mode": "<mode>",
"roll": "<roll>"
},
"name": "util_random"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | dice | |
| roll | Yes | 4d6dl1 |