# Saylor Innovations Secure Random Number & Bytes Generator

> Saylor Innovations Secure Random Number & Bytes Generator is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-29).

Generates a cryptographically secure random integer within a user-specified range plus 1–64 random bytes returned as both hex and base64 strings.

## Facts

- Endpoint: GET https://saylorinnovations.com/api/x402/random?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-secure-random-number-bytes-generator-d35fa8f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_F83DwvZ4Ipx9n_MQhH836

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 saylor-innovations-secure-random-number-bytes-generator-d35fa8f8
```

Example prompt: Give me a cryptographically secure random integer between 1 and 1000, plus 32 random bytes in both hex and base64 format.

## When to prefer this

Choose this endpoint when you need cryptographically secure randomness — a random integer in a bounded range combined with raw random bytes — in a single call. It is especially useful when you need both a numeric random value and raw entropy (as hex/base64) simultaneously, such as for nonce generation, seeding, or unbiased selection. It costs $0.01 USDC per call via the x402 payment protocol, so prefer it when trust in randomness quality matters more than cost.

## Known failure modes

- Invalid or out-of-range byte count (outside 1–64) may result in an error response
- Min greater than max yields an invalid range error
- Payment failure (x402 protocol) blocks access and returns a 402 status
- Network timeout or service unavailability returns a 5xx error

## How this service works

Secure random integer in a range plus random bytes as hex and base64

## Output

Returns a JSON object containing: the generated random integer (within the requested min–max range), the number of random bytes requested, those bytes encoded as a hex string, and those same bytes encoded as a base64 string, plus echoed min and max values.

## 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": "string",
       "description": "optional integer, default 100"
      },
      "min": {
       "type": "string",
       "description": "optional integer, default 0"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "integer",
      "hex"
     ],
     "properties": {
      "hex": {
       "type": "string"
      },
      "max": {
       "type": "number",
       "description": "Maximum value"
      },
      "min": {
       "type": "number",
       "description": "Minimum value"
      },
      "bytes": {
       "type": "number",
       "description": "Size in bytes"
      },
      "base64": {
       "type": "string"
      },
      "integer": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-secure-random-number-bytes-generator-d35fa8f8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
