# Delx Seeded Derangement

> Delx Seeded Derangement is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Shuffle a list into a guaranteed derangement (no element remains in its original position) using a deterministic seed string.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/seeded-derangement
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-seeded-derangement-0eb86222
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yxk3Sx-Ti7WMzFSD3Z-os

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-seeded-derangement-0eb86222 -d '<json body>'
```

Example prompt: Shuffle this list ["alpha","beta","gamma","delta"] into a derangement — no element should stay in its original spot — using the seed "my-fixed-seed-42".

## When to prefer this

Use this endpoint when you need a guaranteed derangement (not just any shuffle) and require reproducibility via a seed — for example, in test fixtures, game logic, or controlled experiments where the same seed must always produce the same deranged order. Prefer it over generic shuffle utilities when the no-fixed-point constraint must be verified and attested, or when you need an audit trail (sha256 hash) proving the exact inputs used.

## Known failure modes

- Input list too large (exceeds 256 items) — request rejected
- Seed string exceeds 8192 characters — validation error
- Single-element list cannot be deranged — deranged flag may be false or error returned
- Empty list input — may return empty result or error
- Malformed JSON body — 400 bad request

## How this service works

Seeded Derangement: Seeded Derangement finds a reproducible permutation where no item keeps its position from bounded caller-supplied values without an external provider. Call Seeded Derangement when an agent needs a reproducible decision that another run can independently replay. Returns the deterministic selection plus seed provenance, population bounds, and the operation-specific outcome for Seeded Derangement as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party,…

## Output

Returns a JSON object with the reordered list under result.items, a boolean result.deranged confirming no element is in its original position, an input_sha256 hash of the inputs for auditability, a count of external_calls (always 0), a retained flag (always false), and an operation identifier. The schema version is included as delx/util-seeded-derangement/v1.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "seed": {
   "type": "string",
   "maxLength": 8192,
   "description": "Seed supplied to Seeded Derangement; used only for this bounded calculation and processed in memory without retention."
  },
  "items": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 8192
   },
   "maxItems": 256,
   "description": "Items supplied to Seeded Derangement; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "items": [
    "d",
    "c",
    "b",
    "a"
   ],
   "deranged": true
  },
  "schema": "delx/util-seeded-derangement/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "f561874b3e88794b12ca33fdf8a62ffe0b8f93dd08edf86088c58253e0378b49",
   "external_calls": 0
  },
  "operation": "seeded_decision:seeded_derangement"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-seeded-derangement-0eb86222/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)
