# Delx Commerce — Seeded Sample With Replacement

> Delx Commerce — Seeded Sample With Replacement is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Returns a reproducible random sample (with replacement) from a list of items using a deterministic seed, verified without data retention.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/seeded-sample-with-replacement?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-seeded-sample-with-replacement-2688ea94
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U79eXfAg6o7S7uesEUMON

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-commerce-seeded-sample-with-replacement-2688ea94 -d '<json body>'
```

Example prompt: Randomly sample 6 items with replacement from the list ['a','b','c'] using the seed 'myseed42', and give me a verifiable result I can reproduce later.

## When to prefer this

Choose this endpoint when you need a cryptographically verifiable, reproducible random sample with replacement from a list — especially when auditability matters (e.g. experiments, lotteries, bootstrap statistics). It is ideal for agents that need deterministic randomness they can prove to a third party via the input SHA-256 hash. Prefer it over local RNG when you need pay-per-result accountability and no data retention guarantees.

## Known failure modes

- Invalid or missing seed string returns a validation error
- Count exceeds array bounds or is non-positive returns a 400-level error
- Items array exceeds 256-item limit returns a schema validation error
- Payment not received or insufficient USDC causes a 402 response
- Malformed JSON body causes a parse error response

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing the sampled items array under result.items, the operation schema identifier, a pass/fail status, and an evidence block with a SHA-256 hash of the input, confirmation that no data was retained, and the count of external calls made (always 0), enabling full verifiability of the computation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "seed": {
   "type": "string",
   "maxLength": 8192,
   "description": "Seed supplied to Seeded Sample With Replacement; used only for this bounded calculation and processed in memory without retention."
  },
  "count": {
   "type": "integer",
   "description": "Count supplied to Seeded Sample With Replacement; 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 Sample With Replacement; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "items": [
    "b",
    "b",
    "c",
    "a",
    "b",
    "a"
   ]
  },
  "schema": "delx/util-seeded-sample-with-replacement/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "c9d9f5a5db4398a65a4c4745a5433523507be6003e4a70d67858ef8934091658",
   "external_calls": 0
  },
  "operation": "seeded_decision:seeded_sample_with_replacement"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-seeded-sample-with-replacement-2688ea94/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
