Anokha Web Tools

GET /v1/random

Cryptographically secure random values: integers in a range, floats, UUIDs, hex tokens, random choice or shuffle of a list.

Price: $0.001 per call, paid in USDC on Base via x402. No API key or signup.

Example call

npx x402-fetch "https://tools.anokha.space/v1/random?kind=int&min=1&max=6&n=3"

Example response

{
  "kind": "int",
  "values": [
    4,
    1,
    6
  ]
}

How payment works

The first request returns HTTP 402 with a PAYMENT-REQUIRED header. An x402 client signs a USDC authorization and retries with a PAYMENT-SIGNATURE header. You are charged only when the call succeeds.