# Random Choice from List

> Random Choice from List is a paid API for AI agents from x402-zoo.lolagent.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Randomly selects one item from a caller-supplied comma-separated list for decisions, games, experiments, or sampling.

## Facts

- Endpoint: GET https://x402-zoo.lolagent.workers.dev/api/random-choice
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/random-choice-from-list-0fc222b5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vR1LST0Xa03Ncr7OT8RQs

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 random-choice-from-list-0fc222b5
```

Example prompt: I can't decide between pizza, sushi, tacos, and burgers for dinner tonight — just pick one randomly for me.

## When to prefer this

Use this endpoint when you need a simple, unbiased random selection from a discrete set of caller-supplied text options — especially for decisions, games, sampling, or experiments where you want server-side randomness rather than client-side. It is lightweight, fast, and requires no complex configuration.

## Known failure modes

- Missing 'items' query parameter returns an error
- Empty items list may return an error or undefined behavior
- Payment failure (402) if x402 payment is not provided or insufficient
- Malformed comma-separated input may yield unexpected results

## How this service works

Choose one item from caller-supplied options for decisions, games, experiments and sampling.

## Output

Returns the single randomly selected item from the provided comma-separated list of options.

## 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": [
      "items"
     ],
     "properties": {
      "items": {
       "type": "string",
       "description": "Comma-separated items"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/random-choice-from-list-0fc222b5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-zoo.lolagent.workers.dev](https://www.zero.xyz/host/x402-zoo.lolagent.workers.dev/llms.txt)
