# Delx Random Choice

> Delx Random Choice is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-20).

Picks one or more random items from a provided list without replacement, returning the selected item(s).

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/random-choice?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-random-choice-dceb792d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xt-I_wbbDCS2a5g9bTv3v

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 delx-random-choice-dceb792d -d '<json body>'
```

Example prompt: Pick 3 random items without replacement from this list: ['Alice','Bob','Charlie','Diana','Eve','Frank'] — I need the selections to be truly random with no repeats.

## When to prefer this

Use this endpoint when you need a lightweight, stateless, on-demand random selection without replacement from a list and don't want to implement your own PRNG or shuffle logic. Ideal for agents that need fair draws, winner selection, or random sampling as a micro-step in a larger workflow, especially in environments where a trusted external computation is preferable. At $0.001 USDC per call it's suitable for frequent use in automation pipelines.

## Known failure modes

- Requesting more items than are available in the list (count exceeds list length)
- Empty input list returns an error
- Missing required fields (items list or count) returns a 400-level error
- Payment failure or insufficient USDC balance prevents the call from completing
- Malformed JSON body causes a request error

## How this service works

Pick random items without replacement for $0.001 USDC. Call when you need this bounded result without an API key or subscription. Returns machine-readable JSON via x402 on Base or Solana. Limitation: results cover only the supplied input or one bounded public endpoint at request time; callers must verify before acting.

## Output

Returns the randomly selected item(s) drawn from the input list without replacement, meaning no item appears more than once in the result. The response includes the chosen items in array form.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-random-choice-dceb792d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
