{"uid":"cap_U79eXfAg6o7S7uesEUMON","slug":"delx-commerce-seeded-sample-with-replacement-2688ea94","name":"Delx Commerce — Seeded Sample With Replacement","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/seeded-sample-with-replacement?utm_source=zero.xyz","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_e3uTD_rUQkyXIAgFbzABb","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":"Returns a reproducible random sample (with replacement) from a list of items using a deterministic seed, verified without data retention.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Reproducible A/B test group assignment","prompt":"I have a list of user segments ['control','variant_a','variant_b'] and I need to draw 10 assignments with replacement using seed 'exp-2024-07' so the experiment is reproducible — can you run that seeded sample for me?"},{"title":"Bootstrap statistical resampling","prompt":"For my analysis I need a bootstrap resample of 50 items with replacement from this dataset ['red','blue','green','yellow','purple'] using seed 'bootstrap-run-3' so the results are auditable."},{"title":"Fair random selection with audit trail","prompt":"Pick 4 winners with replacement from the list ['alice','bob','carol','dan','eve'] using the seed 'lottery-round-1' — I need to be able to prove the draw was fair using the input hash."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:57.910Z","isFirstParty":false,"canonicalSlug":"delx-commerce-seeded-sample-with-replacement-2688ea94"}