# Agent Dev Tools – Secure Random Number Generator

> Agent Dev Tools – Secure Random Number Generator is a paid API for AI agents from agent-dev-tools.frcompanycheck.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-16).

Generates one or more cryptographically secure random integers within a specified range, optionally with unique values and random byte output, paid per call via x402/USDC

## Facts

- Endpoint: GET https://agent-dev-tools.frcompanycheck.workers.dev/v1/random?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-dev-tools-secure-random-number-generator-a5c8be1f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sqRqrLTz7ArzaxwNqSuBf

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-dev-tools-secure-random-number-generator-a5c8be1f
```

Example prompt: Give me 5 unique random numbers between 1 and 100, and also include 16 random bytes as hex.

## When to prefer this

Choose this endpoint when you need cryptographically secure random integers on demand with no API key or account setup, especially in agent workflows where frictionless per-call micropayment via x402/USDC is acceptable. Prefer it over free alternatives when auditability of payment-per-call is important, or when you need combined random integers plus random bytes in a single call. Not suited for high-volume bulk randomness where per-call cost adds up significantly.

## Known failure modes

- count out of range (must be 1-1000) — request rejected, not charged
- bytes out of range (must be 0-256) — request rejected, not charged
- min >= max — invalid range error, not charged
- unique=true with count exceeding range size — impossible uniqueness error, not charged
- payment failure via x402 — 402 response, not charged

## How this service works

Fast deterministic developer utilities for AI agents, paid per call in USDC via x402 (no account, no API key): UUID v4/v7, secure random numbers, dice, MD5/SHA/HMAC hashing, base64/hex/URL/HTML encoding, JSON validation/formatting, QR code SVG, password generation, JWT decoding and text statistics. Pure computation, nothing stored. Errors are never charged.

## Output

Returns a JSON object with an array of random integers ('numbers') within the requested min/max bounds, the min and max values used, and optionally a hex string of random bytes. Example: {numbers:[17,88,3,42,65], min:1, max:100, hex:null}

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "max": {
       "type": "integer",
       "example": 100,
       "description": "default 100"
      },
      "min": {
       "type": "integer",
       "example": 1,
       "description": "default 0"
      },
      "bytes": {
       "type": "integer",
       "description": "also return N random bytes as hex (0-256)"
      },
      "count": {
       "type": "integer",
       "example": 5,
       "description": "1-1000 (default 1)"
      },
      "unique": {
       "type": "boolean",
       "description": "no repeats"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hex": null,
  "max": 100,
  "min": 1,
  "numbers": [
   17,
   88,
   3,
   42,
   65
  ]
 }
}
```

## More

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