# Random Integer Generator (OpenVerbs)

> Random Integer Generator (OpenVerbs) is a paid API for AI agents from random.openverbs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Generates one or more uniformly-distributed random integers within a user-specified inclusive [min, max] range.

## Facts

- Endpoint: POST https://random.openverbs.com/v1/integer
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/random-integer-generator-openverbs-60115702
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bb1ZuT-mSdJvjAo_zyl8K

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability random-integer-generator-openverbs-60115702 -d '<json body>'
```

Example prompt: Give me 5 random integers between 1 and 100.

## When to prefer this

Choose this endpoint when you need uniformly-distributed random integers with a well-defined inclusive range and optional batch generation (up to 1000 at once). It is ideal for simulations, games, giveaways, test data generation, and any scenario requiring reproducible randomness characteristics. Prefer it over general-purpose code execution for randomness when you want a lightweight, pay-per-call approach without spinning up compute. Use the sibling random bytes endpoint if you need cryptographic randomness, or the array-sampling endpoint if you need to draw from a known set.

## Known failure modes

- min greater than max — request rejected with validation error
- count outside 1–1000 range — rejected with schema validation error
- non-integer values for min, max, or count — type error returned
- missing required min or max field — 400 bad request
- payment failure or insufficient USDC balance — 402 payment required

## How this service works

Generate one or more uniformly-distributed random integers in an inclusive [min, max] range.

## Output

Returns one or more random integers sampled uniformly from the inclusive [min, max] range. When count is 1 (default), a single integer is returned; when count > 1, an array of up to 1000 integers is returned.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "min": {
       "type": "integer",
       "description": "Inclusive lower bound."
      },
      "max": {
       "type": "integer",
       "description": "Inclusive upper bound (>= min)."
      },
      "count": {
       "type": "integer",
       "minimum": 1,
       "maximum": 1000,
       "description": "How many integers. Default 1."
      }
     },
     "required": [
      "min",
      "max"
     ],
     "additionalProperties": false
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/random-integer-generator-openverbs-60115702/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from random.openverbs.com](https://www.zero.xyz/host/random.openverbs.com/llms.txt)
