Random number
random_numberUse when an agent needs numbers in a range that will stand up to inspection: uniform random integers between your own bounds, with or without repeats, drawn with rejection sampling so the ends of the range are not slightly less likely, which is what modulo does. Do not use to choose among items (/v1/random/pick) or for a secret (/v1/random/password). $0.005 per call, paid over x402 (USDC).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Highest value, inclusive. Defaults to 100. | |
| min | No | Lowest value, inclusive. Defaults to 1. | |
| count | No | How many to draw, 1-100. Defaults to 1. | |
| unique | No | No repeats. Needs a range at least as wide as count. |