{"uid":"cap__SvdqqXbtMcmKU3a6KpJ1","slug":"delx-seeded-sample-with-replacement-664231b4","name":"Delx Seeded Sample With Replacement","description":"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…","url":"https://api.delx.ai/api/v1/x402/seeded-sample-with-replacement","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"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"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_z_wHlKSGMwFxZNVIouh-A","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Draws a reproducible random sample with replacement from a list of items using a fixed seed, returning exactly the requested count of items.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Bootstrap sampling for statistical analysis","prompt":"I need to bootstrap sample my dataset — take these 10 items ['a','b','c','d','e','f','g','h','i','j'] and draw 20 samples with replacement using seed 'boot42' so I can reproduce this later."},{"title":"Reproducible random question assignment","prompt":"I have a question bank ['Q1','Q2','Q3','Q4','Q5'] and I need to randomly assign 8 questions to a test, with replacement allowed, using seed 'exam2024' so every run gives the same set."},{"title":"Deterministic random playlist shuffle with repeats","prompt":"Shuffle this playlist ['track_a','track_b','track_c','track_d'] and pick 10 tracks with replacement using seed 'shuffle99' — I need the same order each time I run it."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T17:52:32.933Z","isFirstParty":false}