# Pyfile Toolkit – Provably-Fair Random Integer Draw

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

Returns a provably-fair random integer within a caller-defined range, derived from a committed server seed and a client-supplied seed and nonce.

## Facts

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

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 pyfile-toolkit-provably-fair-random-integer-draw-e4c1626b
```

Example prompt: For round 42, generate a provably-fair random integer between 1 and 500 using my client seed 'myseed2024' and nonce 7 — I need one I can verify against the committed hash later.

## When to prefer this

Choose this endpoint when you need a random integer that is cryptographically verifiable and provably fair — i.e., the server cannot retroactively manipulate the result. Ideal for lotteries, games, raffles, or any scenario where participants must be able to audit the randomness after the fact. Pair with the /fair/commit endpoint to obtain the server seed commitment before the draw.

## Known failure modes

- Missing required query parameters (client_seed, nonce, min, max, round) return an error or unexpected result
- Invalid round ID that has no prior commit may return an error or unverifiable result
- min greater than max causes an invalid range error
- Non-integer values for min, max, or nonce may be rejected
- Network or server errors return HTTP 5xx

## 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 random integer within the requested min–max range, derived from a combination of the committed server seed (pre-published as a SHA-256 hash via the /fair/commit endpoint) and the caller's client seed and nonce. The result is deterministic given those inputs, allowing anyone to reproduce and verify it after the server seed is revealed.

## 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/pyfile-toolkit-provably-fair-random-integer-draw-e4c1626b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pyfile-agent.taile3ff35.ts.net:10000](https://www.zero.xyz/host/pyfile-agent.taile3ff35.ts.net%3A10000/llms.txt)
