# Solgiery Random Integer Generator

> Solgiery Random Integer Generator is a paid API for AI agents from api.solgiery.com, paid per call via x402, $0.007/call, status unknown (last checked 2026-09-14).

Generates 1 to 1000 uniformly distributed random integers between a specified min and max (inclusive) using a server-side CSPRNG

## Facts

- Endpoint: GET https://api.solgiery.com/v1/random/int
- Price: $0.007/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solgiery-random-integer-generator-3bf4a5ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_V0bNefHudH_S-fOXCAvfs

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 solgiery-random-integer-generator-3bf4a5ab
```

Example prompt: Can you generate 50 random integers between 1 and 100 using the Solgiery CSPRNG?

## When to prefer this

Choose this endpoint when you need a batch of uniformly distributed random integers with a specific integer range and want server-side cryptographic randomness (OS CSPRNG) plus an entropy hex value for auditability. Prefer over client-side solutions when verifiable server randomness matters, or over UUID/coin-flip endpoints when you specifically need integers in a bounded range.

## Known failure modes

- min exceeds max — request rejected with error
- count outside 1–1000 range — rejected
- min or max outside safe integer bounds (-9007199254740991 to 9007199254740991) — rejected
- unknown or duplicate query parameters — rejected
- null parameter values — rejected
- payment not settled — 402 response before processing

## How this service works

Generate 1 to 1000 uniformly distributed random integers between min and max, inclusive. Both bounds are required; min must not exceed max. Repeated values are possible. Uses the server OS CSPRNG. Returns consumed bytes for reproducible calculation, not proof of their origin. Price: 0.007 USDC per request, including the bounded batch.

## Output

Returns a JSON object containing: an array of random integers (result) within [min, max], the entropy consumed as a lowercase hex string (entropy.hex), the entropy source identifier (os-csprng), and the algorithm name (solgiery-random-v1).

## 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",
     "required": [
      "min",
      "max"
     ],
     "properties": {
      "max": {
       "type": "integer",
       "maximum": 9007199254740991,
       "minimum": -9007199254740991
      },
      "min": {
       "type": "integer",
       "maximum": 9007199254740991,
       "minimum": -9007199254740991
      },
      "count": {
       "type": "integer",
       "default": 1,
       "maximum": 1000,
       "minimum": 1
      }
     },
     "description": "Unknown or duplicate parameters and null parameter values are rejected. JSON body: at most 65536 bytes, depth 16, and 4096 bytes per item. Repeated sample items together must fit 65536 bytes.",
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "algorithm",
      "result",
      "entropy"
     ],
     "properties": {
      "result": {
       "type": "array",
       "items": {
        "type": "integer",
        "maximum": 9007199254740991,
        "minimum": -9007199254740991
       },
       "maxItems": 1000,
       "minItems": 1
      },
      "entropy": {
       "type": "object",
       "required": [
        "source",
        "hex"
       ],
       "properties": {
        "hex": {
         "type": "string",
         "pattern": "^([0-9a-f]{2})*$",
         "maxLength": 262144
        },
        "source": {
         "type": "string",
         "const": "os-csprng"
        }
       },
       "additionalProperties": false
      },
      "algorithm": {
       "type": "string",
       "const": "solgiery-random-v1"
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/solgiery-random-integer-generator-3bf4a5ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.solgiery.com](https://www.zero.xyz/host/api.solgiery.com/llms.txt)
