# rng.sociologic.ai Dice Roll

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

Roll a virtual die with a configurable number of sides (2 to 1000) using a cryptographically secure random number generator

## Facts

- Endpoint: GET https://rng.sociologic.ai/dice
- Price: $0.02/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-9a26bf5e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nbmTcd4KIXA5AsrdxFvEm

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-9a26bf5e
```

Example prompt: Roll a 20-sided die for me using a cryptographically secure random generator.

## When to prefer this

Use this endpoint when you need a single cryptographically secure die roll with a customizable number of sides (2–1000), especially for gaming, simulations, lotteries, or any application requiring a fair, tamper-resistant random integer within a bounded range. Prefer over generic random integer endpoints when the dice/sides metaphor fits your use case or when you specifically want a value from 1 to N inclusive.

## Known failure modes

- sides parameter below 2 or above 1000 returns a validation error
- non-integer sides value causes a bad request
- payment failure (402) if USDC payment is not provided or insufficient
- network timeout if service is unavailable

## How this service works

Roll a die with configurable number of sides (2-1000)

## Output

An integer result representing the outcome of rolling a die with the specified number of sides, generated using a cryptographically secure RNG. The value will be between 1 and the number of sides (inclusive).

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "sides": 20
  }
 }
}
```

## 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": {
      "sides": {
       "type": "integer",
       "default": 6,
       "maximum": 1000,
       "minimum": 2,
       "description": "Number of sides (2-1000)"
      }
     }
    }
   },
   "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-9a26bf5e/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)
