{"uid":"cap_vR1LST0Xa03Ncr7OT8RQs","slug":"random-choice-from-list-0fc222b5","name":"Random Choice from List","description":"Choose one item from caller-supplied options for decisions, games, experiments and sampling.","url":"https://x402-zoo.lolagent.workers.dev/api/random-choice","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["items"],"properties":{"items":{"type":"string","description":"Comma-separated items"}}}},"additionalProperties":false}}},"responseSchema":null,"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_miWfUIIjKIRkaMjRvU3bm","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":"Randomly selects one item from a caller-supplied comma-separated list for decisions, games, experiments, or sampling.","exampleAgentPrompt":"I can't decide between pizza, sushi, tacos, and burgers for dinner tonight — just pick one randomly for me.","exampleUseCases":[{"title":"Dinner option decision tie-breaker","prompt":"I'm stuck between chicken parmesan, pad thai, and fish tacos — randomly pick one of those for my dinner tonight."},{"title":"Game turn order randomizer","prompt":"We're starting a board game and need to randomly pick who goes first from Alice, Bob, Carol, and Dave — can you choose one at random?"},{"title":"Random experiment condition assignment","prompt":"For my A/B test, randomly assign one of these conditions: control, variant_A, variant_B, variant_C."}],"resultDescription":"Returns the single randomly selected item from the provided comma-separated list of options.","failureModes":["Missing 'items' query parameter returns an error","Empty items list may return an error or undefined behavior","Payment failure (402) if x402 payment is not provided or insufficient","Malformed comma-separated input may yield unexpected results"],"whenToPreferThis":"Use this endpoint when you need a simple, unbiased random selection from a discrete set of caller-supplied text options — especially for decisions, games, sampling, or experiments where you want server-side randomness rather than client-side. It is lightweight, fast, and requires no complex configuration.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:55:39.687Z","isFirstParty":false}