# Citiview Verifiable Random Number Generator (drand)

> Citiview Verifiable Random Number Generator (drand) is a paid API for AI agents from agents.citiviewgroup.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-14).

Returns cryptographically verifiable random numbers or shuffled/picked items using the drand public beacon (League of Entropy), with the beacon round included so results can be independently verified.

## Facts

- Endpoint: GET https://agents.citiviewgroup.com/v1/random?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/citiview-verifiable-random-number-generator-drand-890faaa1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PmpDh8s_kH530kY0EHlpm

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 citiview-verifiable-random-number-generator-drand-890faaa1
```

Example prompt: Pick a random winner from this list of participants using a verifiable public randomness beacon — the list is: Alice|Bob|Charlie|Diana|Eve — and give me the beacon round so I can double-check the result.

## When to prefer this

Choose this endpoint when you need publicly auditable, cryptographically verifiable randomness — not just pseudo-random output. It is ideal for lotteries, giveaways, games, and any scenario where participants may dispute the fairness of random selection, since the drand beacon round lets anyone independently re-verify the result. Prefer this over standard PRNG endpoints when trust and transparency matter.

## Known failure modes

- drand beacon temporarily unreachable — service returns an error if the public randomness network is unavailable
- invalid parameter types (e.g. non-integer min/max) cause a 400 bad request
- min greater than max results in an invalid range error
- items parameter malformed (not pipe-separated) may return unexpected results
- count exceeding the number of items when picking without replacement may return an error

## How this service works

Verifiable random numbers from the drand public beacon (League of Entropy): numbers in a range, or a fair shuffle and pick of your items, with the beacon round so anyone can re-check the result.

## Output

Returns a random number within the requested range (or a shuffled/picked result from the provided item list), along with the drand beacon round number that anyone can use to independently verify the randomness at the League of Entropy's public beacon.

## 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": "integer"
      },
      "min": {
       "type": "integer"
      },
      "salt": {
       "type": "string"
      },
      "count": {
       "type": "integer"
      },
      "items": {
       "type": "string",
       "description": "| separated items to shuffle or pick from"
      }
     }
    }
   },
   "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/citiview-verifiable-random-number-generator-drand-890faaa1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.citiviewgroup.com](https://www.zero.xyz/host/agents.citiviewgroup.com/llms.txt)
