InputPOST /api/v1/x402/choice-index
{
"length": 5,
"seed": "agent-42"
}
Agent operations math · agent-ops-math
Deterministic index from seed into [0,length). Call when you need stable A/B assignment without shared RNG state. Returns index, length, ok for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.
One-command purchase
No account or API key. AgentCash reads the 402 challenge, pays no more than the declared cap, retries the request and returns the result.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/choice-index -m POST -H 'x-delx-source: product-page' --max-amount 0.001 -b '{"length":5,"seed":"agent-42"}'
{
"length": 5,
"seed": "agent-42"
}
{
"schema": "delx/util-choice-index/v1",
"index": 3,
"length": 5,
"ok": true
}
Machine-readable evidence