# Provably-Fair Random Integer Draw

> Provably-Fair Random Integer Draw is a paid API for AI agents from pyfile-agent.taile3ff35.ts.net, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Generates a provably-fair random integer within a specified range using a committed seed scheme with client seed, nonce, and round parameters

## Facts

- Endpoint: GET https://pyfile-agent.taile3ff35.ts.net/data/fair/draw
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/provably-fair-random-integer-draw-e898a07a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wPFkjC1yEuu7-RQpF5Qbm

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 provably-fair-random-integer-draw-e898a07a
```

Example prompt: Draw a provably-fair random integer between 1 and 100 using client seed 'myseed', nonce 1, for round 42.

## When to prefer this

Choose this endpoint when you need a single random integer with cryptographic provable fairness — i.e., the result can be verified post-draw by anyone who knows the server seed, client seed, and nonce. Ideal for games, lotteries, raffles, or any scenario requiring an auditable random draw. Prefer this over /fair/pick when selecting a number rather than a winner from a list, and over /fair/verify when you want to generate (not re-verify) a draw.

## Known failure modes

- Missing required query parameters (client_seed, nonce, min, max, round) result in an error response
- min greater than or equal to max returns an invalid range error
- Invalid nonce or round ID format may cause a 400 error
- Payment failure (x402) if USDC is not provided or insufficient
- Round not yet committed may return an error if commit step was skipped

## How this service works

Provably-fair random integer from a committed seed. ?client_seed=s&nonce=1&min=1&max=100&round=1

## Output

Returns a single random integer within the specified min/max range, generated deterministically from the combination of server seed (pre-committed via SHA256 hash), client seed, nonce, and round identifier — allowing anyone to later verify fairness by checking the revealed server seed against the published commit.

## 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": {}
    }
   }
  },
  "output": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/provably-fair-random-integer-draw-e898a07a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pyfile-agent.taile3ff35.ts.net](https://www.zero.xyz/host/pyfile-agent.taile3ff35.ts.net/llms.txt)
