get_random
Generate cryptographically secure random integers or bytes, returning uniform values without modulo bias for use in nonces, IDs, sampling, and shuffling.
Instructions
Cryptographically secure randomness for agents that are deterministic or sandboxed and cannot generate their own: uniform integers in [min, max] (rejection-sampled, no modulo bias) or raw random bytes as hex and base64. For nonces, IDs, sampling and shuffling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Upper bound (inclusive) for integer mode. | |
| min | No | With max: return uniform integers in [min, max] inclusive. | |
| bytes | No | Random bytes to return, 1..1024. Default 32 when no integer range is given. | |
| count | No | How many integers, 1..1000. Integer mode only. |