Example inputPOST /api/v1/x402/seeded-random-sample
{
"items": [
"alpha",
"beta",
"gamma",
"delta"
],
"count": 2,
"seed": "workflow-42"
}
Portable intent card · agent-operations
Select a reproducible sample without replacement from a bounded caller-supplied list. Use when multiple agents or retries must reach the same selection from the same seed. Returns sampled values, original indices, and a seed hash for $0.001 USDC via x402 on Base; local-only, stateless, and no input retention.
Intent to transaction
The source header follows this discovery route through challenge, payment and delivery without exposing the buyer or request body.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/seeded-random-sample -m POST -H 'x-delx-source: intent-card-seeded-random-sample-api' --max-amount 0.001 -b '{"items":["alpha","beta","gamma","delta"],"count":2,"seed":"workflow-42"}'
{
"items": [
"alpha",
"beta",
"gamma",
"delta"
],
"count": 2,
"seed": "workflow-42"
}
{
"intent": "Seeded Random Sample for an agent workflow",
"tool_name": "util_seeded_random_sample",
"price_usdc": "0.001",
"machine_url": "https://commerce.delx.ai/intents/seeded-random-sample-api.json"
}
Portable and inspectable