# Solgiery Random Float Generator

> Solgiery Random Float 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 independent cryptographically secure random floating-point numbers uniformly distributed on the 53-bit grid in [0,1).

## Facts

- Endpoint: GET https://api.solgiery.com/v1/random/float
- 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-float-generator-ef3884f2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qHI0iCpaJVae01q3-4HmJ

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-float-generator-ef3884f2
```

Example prompt: Can you generate 500 cryptographically secure random floats between 0 and 1 for my Monte Carlo simulation?

## When to prefer this

Choose this endpoint when you need a batch of high-quality, cryptographically secure floating-point random numbers in [0,1) with 53-bit precision, especially when auditability matters (entropy bytes are returned). Prefer it over integer-range endpoints when you need uniform reals, over UUID endpoints when you need numeric values, and over simpler PRNG services when cryptographic security is required.

## Known failure modes

- count parameter below 1 or above 1000 returns a validation error
- non-integer count value is rejected
- unknown or duplicate query parameters are rejected
- null parameter values are rejected
- payment not settled results in HTTP 402 before processing
- request body exceeding 65536 bytes is rejected

## How this service works

Generate 1 to 1000 independent random numbers on the 53-bit grid in [0,1); zero is included and one is excluded. 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: a 'result' array of between 1 and 1000 floating-point numbers uniformly distributed on [0,1) at 53-bit precision; an 'entropy' object with a hex-encoded string of the consumed CSPRNG bytes and a source label ('os-csprng'); and an 'algorithm' string identifying the generation method ('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": [],
     "properties": {
      "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": "number",
        "minimum": 0,
        "exclusiveMaximum": 1
       },
       "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-float-generator-ef3884f2/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)
