{"uid":"cap_5szdQlf0ZhGP4pOM0XVdY","slug":"delx-commerce-seeded-sample-indices-2d238e5f","name":"Delx Commerce — Seeded Sample Indices","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-indices?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"seed":{"type":"string","maxLength":8192,"description":"Seed supplied to Seeded Sample Indices; used only for this bounded calculation and processed in memory without retention."},"count":{"type":"integer","description":"Count supplied to Seeded Sample Indices; used only for this bounded calculation and processed in memory without retention."},"population_size":{"type":"integer","description":"Population Size supplied to Seeded Sample Indices; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"indices":[87,14,63,47,69],"with_replacement":false},"schema":"delx/util-seeded-sample-indices/v1","status":"pass","evidence":{"retained":false,"input_sha256":"cbca27dc467ea1d750fe2e73d7674806e44ebcabbb22317158d7f88f92baf4d0","external_calls":0},"operation":"seeded_decision:seeded_sample_indices"}},"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_J27P2H_zyEqw1G3p30wRW","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":"Generates a reproducible, seeded random sample of indices from a population without replacement, verifiably processed in memory without data retention.","exampleAgentPrompt":"Pick 5 random indices from a population of 100 using the seed 'alpha42' — I need the same result every time I use that seed, and I want proof the data wasn't stored.","exampleUseCases":[{"title":"Fair lottery draw for contest","prompt":"Run a verifiable lottery draw: pick 10 winner indices from a pool of 500 entries using the seed 'contest2024-june' so the selection is reproducible and I can prove it was fair."},{"title":"Reproducible train/test split","prompt":"I need to split a dataset of 1000 items into a test set of 200 — use the seed 'ml-split-v3' to pick the 200 indices so I can reproduce the exact split later."},{"title":"Random assignment for A/B experiment","prompt":"Randomly assign 30 participants out of 150 to the treatment group using the seed 'experiment-batch7' — I need the same indices every time I rerun this with that seed."}],"resultDescription":"Returns a JSON object containing an array of sampled integer indices (without replacement), a boolean with_replacement flag, the operation schema identifier, a status field ('pass'), and an evidence block including a SHA256 hash of the input, a retained=false flag confirming no data was stored, and a count of external calls made (0).","failureModes":["count exceeds population_size (invalid sample without replacement)","missing required parameters (seed, count, or population_size)","population_size or count is zero or negative","seed string exceeds 8192 character limit","payment failure or insufficient USDC balance via x402"],"whenToPreferThis":"Choose this endpoint when you need reproducible, verifiable random index sampling — especially in contexts requiring auditability (lotteries, experiments, fair selection) where proof of no data retention and no external calls matters. Prefer it over generic RNG when the same seed must always produce the same output and a cryptographic evidence hash is needed for transparency. The $0.001 per-call pay-per-result model with no signup makes it ideal for agent workflows needing on-demand, trustless computation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:56:43.268Z","isFirstParty":false,"canonicalSlug":"delx-commerce-seeded-sample-indices-2d238e5f"}