# Delx Seeded Sample With Replacement

> Delx Seeded Sample With Replacement 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-14).

Draws a reproducible random sample with replacement from a list of items using a fixed seed, returning exactly the requested count of items.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/seeded-sample-with-replacement
- 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/delx-seeded-sample-with-replacement-664231b4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__SvdqqXbtMcmKU3a6KpJ1

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-sample-with-replacement-664231b4 -d '<json body>'
```

Example prompt: From the list ['apple','banana','cherry','date'], draw 6 items with replacement using seed 'abc123' — I need it reproducible so I get the same result every time.

## When to prefer this

Choose this endpoint when you need a deterministic, reproducible random sample with replacement — especially for bootstrapping, simulation, or test generation where the same seed must always yield the same output. Prefer it over non-seeded random samplers when reproducibility is required, and over shuffle-only endpoints when sampling more items than the original list size is needed.

## Known failure modes

- Invalid seed type (non-string) returns validation error
- Count exceeding reasonable bounds may be rejected
- Items array exceeding 256-item maximum returns a 400-level error
- Missing required fields (seed, count, or items) returns a schema validation error
- Payment not included or insufficient USDC triggers a 402 response

## How this service works

Seeded Sample With Replacement: Seeded Sample With Replacement samples caller items reproducibly with replacement from bounded caller-supplied values without an external provider. Call Seeded Sample With Replacement 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 Sample With Replacement as versioned deterministic JSON. Price: $0.001 US…

## Output

Returns a JSON object with a 'result.items' array containing the sampled items (possibly with repeats), along with schema identifier, pass/fail status, and an evidence block confirming no data was retained, the SHA-256 of the input, and zero external calls were made.

## 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-seeded-sample-with-replacement-664231b4/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)
