# Touchstone Locomot Random Proof

> Touchstone Locomot Random Proof is a paid API for AI agents from touchstone.locomot.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Generates cryptographically verifiable random draws (integers, dice rolls, coin flips, UUIDs, shuffles, etc.) backed by a drand beacon proof

## Facts

- Endpoint: GET https://touchstone.locomot.io/random/proof
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/touchstone-locomot-random-proof-4785f3b4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KUGp74mtcqMjJ6f-5VzdT

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 touchstone-locomot-random-proof-4785f3b4
```

Example prompt: Roll 3d6 dice for me with a cryptographic proof so I can verify the result was fair — bind the draw to the nonce 'myGame42'.

## When to prefer this

Use this endpoint when you need provably fair, auditable randomness backed by a public randomness beacon (drand) — for lotteries, games, giveaways, or any context where participants need to verify that the outcome was not manipulated. Prefer this over pseudo-random number generators or opaque services when cryptographic proof of fairness is required.

## Known failure modes

- Invalid op enum value returns 400 bad request
- Out-of-range min/max values may cause errors
- Invalid dice notation (e.g. 'xdy' malformed) returns error
- Pinned round that doesn't exist yet causes failure
- Malformed items list (comma or JSON) returns parse error

## How this service works

Provably-fair draw from the drand beacon with the full verifiable receipt + nonce-binding (the free draw is at GET /random).

## Output

A JSON object containing the draw result (e.g. integer, rolled values, picked item), a cryptographic proof tied to a drand randomness beacon, the beacon metadata, the operation type, notation, and a flag indicating whether the result is deterministic given a pinned round.

## 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",
     "properties": {
      "k": {
       "type": "integer"
      },
      "n": {
       "type": "integer"
      },
      "op": {
       "enum": [
        "int",
        "dice",
        "coin",
        "bytes",
        "uuid",
        "shuffle",
        "sample",
        "choice",
        "pick"
       ],
       "type": "string",
       "description": "draw type; default int"
      },
      "max": {
       "type": "integer"
      },
      "min": {
       "type": "integer"
      },
      "dice": {
       "type": "string",
       "description": "e.g. 3d6"
      },
      "count": {
       "type": "integer"
      },
      "items": {
       "type": "string",
       "description": "comma list or JSON array"
      },
      "nonce": {
       "type": "string",
       "description": "bind the draw to your context"
      },
      "round": {
       "type": "integer",
       "description": "pin a drand round (reproducible)"
      },
      "sides": {
       "type": "integer"
      },
      "weights": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "op": {
     "type": "string"
    },
    "draw": {
     "type": "string"
    },
    "nonce": {
     "type": "string"
    },
    "proof": {
     "type": "object"
    },
    "rolls": {
     "type": "array"
    },
    "total": {
     "type": "integer"
    },
    "beacon": {
     "type": "object"
    },
    "engine": {
     "type": "string"
    },
    "notation": {
     "type": "string"
    },
    "deterministic_given_round": {
     "type": "boolean"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/touchstone-locomot-random-proof-4785f3b4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from touchstone.locomot.io](https://www.zero.xyz/host/touchstone.locomot.io/llms.txt)
