{"uid":"cap_gR3D-6Gw2xX6_xzYtVOto","slug":"delx-seeded-sample-indices-073860a4","name":"Delx Seeded Sample Indices","description":"Seeded Sample Indices: Seeded Sample Indices samples unique zero-based indices from a population size from bounded caller-supplied values without an external provider. Call Seeded Sample Indices 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 Indices as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-par…","url":"https://api.delx.ai/api/v1/x402/seeded-sample-indices","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_peOLKowtqDScokthgRWMf","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 list of random sample indices from a population using a deterministic seed string, count, and population size.","exampleAgentPrompt":"Using seed 'alpha42', pick 5 random indices from a population of 100 — make sure the same seed always gives the same result.","exampleUseCases":[{"title":"Reproducible A/B test group assignment","prompt":"Using seed 'exp-2024-q3', randomly select 20 indices from a population of 500 so I can assign users to a test group the same way every run."},{"title":"Auditable lottery draw","prompt":"Draw 3 winning indices from a pool of 50 entries using seed 'lottery-draw-june' — I need the same draw to be verifiable by anyone who reruns it."},{"title":"Randomized dataset split for ML","prompt":"Split my dataset of 200 samples into a training subset by picking 150 random indices using seed 'train-split-v1' so I can reproduce the split later."}],"resultDescription":"Returns a JSON object containing an array of sampled integer indices (without replacement), a boolean replacement flag, the operation name, a SHA-256 hash of the input for auditability, confirmation that no data was retained, and an external call count of zero. Status field indicates whether the computation passed.","failureModes":["count exceeds population_size when sampling without replacement — likely returns an error or invalid result","missing required fields (seed, count, population_size) may cause a 400 or validation error","very large population_size or count values could hit memory or timeout limits","malformed or excessively long seed string (beyond 8192 chars) may be rejected","non-integer values for count or population_size will fail schema validation"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, reproducible random index selection — such as for auditable draws, reproducible ML splits, or any workflow where the same seed must always yield the same indices. Prefer it over client-side random sampling when auditability (via input SHA-256 evidence) and zero data retention are required. It is not suitable for weighted sampling, sampling with replacement control beyond the default, or generating non-index random values.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:07:11.369Z","isFirstParty":false}