# Cryptographically Secure Random Number Generator

> Cryptographically Secure Random Number Generator is a paid API for AI agents from landingen24h.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-27).

Generates cryptographically secure random integers and hex bytes using the browser's CSPRNG (crypto.getRandomValues)

## Facts

- Endpoint: POST https://landingen24h.com/api/x402/util/random?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cryptographically-secure-random-number-generator-8353c764
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Msf0Tp-mZkSDFewUDVM9h

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 cryptographically-secure-random-number-generator-8353c764 -d '<json body>'
```

Example prompt: Generate 5 cryptographically secure random integers between 1 and 100, and also give me 16 random bytes as a hex string.

## When to prefer this

Choose this endpoint when you need verifiably cryptographically secure random values (CSPRNG-backed) rather than pseudo-random numbers, especially for security-sensitive use cases like token generation, nonces, or fair sampling. Prefer it over language-native Math.random() equivalents when tamper-resistance or auditability matters.

## Known failure modes

- bytes > 256 returns validation error
- count > 100 returns validation error
- count < 1 or bytes < 0 returns validation error
- non-integer values for min/max/bytes/count may cause type errors
- payment failure returns 402 Payment Required

## How this service works

Landing page para tu negocio en 24 horas: textos, diseño para celular y botón de WhatsApp. Boceto gratis: ves la primera versión antes de pagar. USD 39 de lanzamiento.

## Output

Returns a JSON object containing: a random integer within the specified range, an array of random integers (length = count), a hex string of random bytes, and metadata (min, max, bytes, source label indicating 'crypto.getRandomValues (CSPRNG)').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "max": {
   "type": "integer",
   "default": 100
  },
  "min": {
   "type": "integer",
   "default": 0
  },
  "bytes": {
   "type": "integer",
   "default": 16,
   "maximum": 256,
   "minimum": 0
  },
  "count": {
   "type": "integer",
   "default": 1,
   "maximum": 100,
   "minimum": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hex": "6bf3c329551a5ff3",
  "max": 6,
  "min": 1,
  "bytes": 8,
  "source": "crypto.getRandomValues (CSPRNG)",
  "integer": 5,
  "integers": [
   5,
   6,
   4
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cryptographically-secure-random-number-generator-8353c764/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from landingen24h.com](https://www.zero.xyz/host/landingen24h.com/llms.txt)
