# Anokha Random Number & Value Generator

> Anokha Random Number & Value Generator is a paid API for AI agents from tools.anokha.space, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Generates random integers, floats, UUIDs, hex strings, or shuffled/chosen items from a list via a pay-per-call API

## Facts

- Endpoint: GET https://tools.anokha.space/v1/random?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/anokha-random-number-value-generator-689a132b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UdKfGw3g1UzlZr5oBfmFo

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 anokha-random-number-value-generator-689a132b
```

Example prompt: Can you generate 5 random integers between 1 and 50 using the Anokha random tool?

## When to prefer this

Choose this endpoint when your agent needs lightweight, on-demand random value generation without managing an API key — particularly useful for UUID minting, sampling, shuffling, or generating bounded random numbers in a stateless, pay-per-call fashion using USDC on Base.

## Known failure modes

- Invalid 'kind' enum value returns a 400-level error
- min greater than max for integer/float generation causes an error
- Missing required 'n' parameter may return a default count or error depending on kind
- Payment failure (x402) returns 402 Payment Required before any result is returned
- Non-positive or zero byte count for hex generation may fail

## How this service works

Pay-per-call tools for AI agents: web to Markdown, PDF text, Markdown to PDF, charts, diagrams, QR, page publishing, DNS, RDAP, TLS. x402, USDC on Base, no API key.

## Output

Returns a JSON object with a 'kind' field indicating the type of randomness generated and a 'values' array containing the requested random items (integers, floats, UUIDs, hex strings, or reordered list elements).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "n": {
       "type": "integer"
      },
      "max": {
       "type": "integer"
      },
      "min": {
       "type": "integer"
      },
      "kind": {
       "enum": [
        "int",
        "float",
        "uuid",
        "hex",
        "choice",
        "shuffle"
       ],
       "type": "string"
      },
      "bytes": {
       "type": "integer"
      },
      "items": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "kind": "int",
  "values": [
   4,
   1,
   6
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/anokha-random-number-value-generator-689a132b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tools.anokha.space](https://www.zero.xyz/host/tools.anokha.space/llms.txt)
