# quartermaster.surewhynot.app Random Integer Generator

> quartermaster.surewhynot.app Random Integer Generator is a paid API for AI agents from quartermaster.surewhynot.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns one or more cryptographically-secure random integers within a caller-specified inclusive range, rejection-sampled to eliminate modulo bias.

## Facts

- Endpoint: GET https://quartermaster.surewhynot.app/v1/random
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quartermaster-surewhynot-app-random-integer-generator-51ea9947
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g3lm1LClzKlL4HfcufPUF

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 quartermaster-surewhynot-app-random-integer-generator-51ea9947
```

Example prompt: Give me 5 cryptographically secure random integers between 1 and 50 — I need real entropy, not something you'd generate yourself.

## When to prefer this

Use this endpoint when you need genuinely unpredictable integers — e.g., for cryptographic nonces, fair lotteries, unbiased simulations, or any context where an LLM's pseudo-random output is unacceptable. Prefer this over the random-choice sibling when your pool is a numeric range rather than a discrete list.

## Known failure modes

- min greater than max — returns a 400 error
- count outside 1–1000 range — returns a 400 validation error
- non-integer values for min/max/count — returns a 400 error
- payment not completed — returns a 402 challenge before serving the result

## How this service works

Cryptographically-secure random integers in a chosen range (CSPRNG, rejection-sampled to avoid modulo bias) — real entropy an LLM cannot produce itself.

## Output

Returns one or more random integers drawn from a CSPRNG, each within the specified inclusive [min, max] range. The count parameter controls how many values are returned (1–1000). Values are rejection-sampled to guarantee uniform distribution with no modulo bias.

## 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": {
      "max": {
       "type": "integer",
       "default": 100,
       "description": "Upper bound, inclusive"
      },
      "min": {
       "type": "integer",
       "default": 0,
       "description": "Lower bound, inclusive"
      },
      "count": {
       "type": "integer",
       "default": 1,
       "description": "How many, 1-1000"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/quartermaster-surewhynot-app-random-integer-generator-51ea9947/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from quartermaster.surewhynot.app](https://www.zero.xyz/host/quartermaster.surewhynot.app/llms.txt)
