# rng.sociologic.ai Random Float Generator

> rng.sociologic.ai Random Float Generator is a paid API for AI agents from rng.sociologic.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Generates one or more cryptographically secure random floating-point numbers between 0 and 1

## Facts

- Endpoint: GET https://rng.sociologic.ai/random
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rng-sociologic-ai-21e5ed82
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jkumWmSY9B6ysjtX1e0Il

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 rng-sociologic-ai-21e5ed82
```

Example prompt: Give me 10 cryptographically secure random floats between 0 and 1 for my Monte Carlo simulation.

## When to prefer this

Choose this endpoint when you need cryptographically secure (not just pseudo-random) floating-point values between 0 and 1, especially for security-sensitive applications, simulations, statistical sampling, or probabilistic algorithms. Prefer this over language-runtime random functions when auditability or unpredictability matters.

## Known failure modes

- count parameter out of range (below 1 or above 100) — likely returns 400 Bad Request
- payment failure — 402 Payment Required if USDC payment not supplied
- service unavailable — 503 if the upstream RNG service is down
- invalid query parameter type — 400 if count is not an integer

## How this service works

Generate cryptographically secure random float(s) between 0 and 1

## Output

Returns an array of one or more cryptographically secure random floating-point numbers, each in the range [0, 1). The count of values matches the requested count parameter (default 1, max 100).

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "count": 10
  }
 }
}
```

## 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": [],
     "properties": {
      "count": {
       "type": "integer",
       "default": 1,
       "maximum": 100,
       "minimum": 1,
       "description": "Number of values (1-100)"
      }
     }
    }
   },
   "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/rng-sociologic-ai-21e5ed82/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rng.sociologic.ai](https://www.zero.xyz/host/rng.sociologic.ai/llms.txt)
