# Agent Data Tools: Random Number Generator

> Agent Data Tools: Random Number Generator is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-20).

Generates one or more random numbers and returns them as a JSON array

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/random/number?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-random-number-generator-f6b229da
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SMrwmJtvUA0-cojVcSVWL

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 agent-data-tools-random-number-generator-f6b229da
```

Example prompt: Give me 3 random numbers using the Agent Data Tools random number endpoint — pay per call in USDC.

## When to prefer this

Choose this endpoint when you need lightweight, pay-per-call random number generation without account setup or API keys, especially within an agent workflow already using the Agent Data Tools suite and paying via x402 USDC micropayments on Base.

## Known failure modes

- Invalid query parameters may result in an error response
- Network or worker-side failure may return a non-200 status; failed calls are not charged
- Requesting an unreasonable count or out-of-range values may cause a validation error

## How this service works

One or more random whole numbers in a range (inclusive), optionally all different, from a cryptographic random source. Use for draws, sampling and games.

## Output

Returns a JSON object with a 'numbers' array containing one or more randomly generated integers, e.g. {"numbers":[42,7,93]}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "max": {
   "type": "integer",
   "description": "Highest value (default 100)"
  },
  "min": {
   "type": "integer",
   "description": "Lowest value (default 1)"
  },
  "count": {
   "type": "integer",
   "description": "How many (1-1000, default 1)"
  },
  "unique": {
   "type": "string",
   "description": "true for no repeats"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "numbers": {
   "type": "array",
   "items": {
    "type": "number"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-random-number-generator-f6b229da/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
