{"uid":"cap_Qqrm0M_kU4s6FXlqWYEPh","slug":"random-number-generator-uniform-no-modulo-bias-400df870","name":"Random Number Generator (Uniform, No Modulo Bias)","description":"60 paid endpoints with no metering, no API key and no account. Each endpoint has one flat price per call, whatever the size of the request: LLM completions with automatic failover across several large models, read-only EVM tooling over Base, Ethereum, Polygon, Arbitrum and Optimism, and pure crypto utilities that touch no network.","url":"https://flat-rate-llm.kikoribera03.workers.dev/v1/random/number","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"max":{"type":"number","description":"Highest value, inclusive. Defaults to 100."},"min":{"type":"number","description":"Lowest value, inclusive. Defaults to 1."},"count":{"type":"number","description":"How many to draw, 1-100. Defaults to 1."},"unique":{"type":"boolean","description":"No repeats. Needs a range at least as wide as count."}}},"responseSchema":{"type":"object","properties":{"max":{"type":"number"},"min":{"type":"number"},"count":{"type":"number"},"numbers":{"type":"array","items":{"type":"object"}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0025","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.0025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6Lo0fSDcNGnRq8H6o-I0a","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns one or more uniform random integers in a specified range, optionally without repeats, using rejection sampling to avoid modulo bias.","exampleAgentPrompt":"Pick 6 unique random numbers between 1 and 49 — no repeats, like a lottery draw.","exampleUseCases":[{"title":"Lottery number picker","prompt":"Draw 6 unique random numbers between 1 and 49 for my lottery ticket — no repeats allowed."},{"title":"Random game item selection","prompt":"Pick 3 random numbers between 1 and 20 for my tabletop game, repeats are fine."},{"title":"Random winner from participants","prompt":"I have 200 participants numbered 1 to 200 — pick 1 random winner with no bias."}],"resultDescription":"Returns a JSON object with the requested random numbers in an array, along with the min, max, and count used. Numbers are sampled uniformly using rejection sampling so no value in the range is under- or over-represented.","failureModes":["unique=true with count larger than the range (min to max) returns an error because not enough distinct values exist","non-integer or out-of-order min/max may cause unexpected results","count outside 1-100 may be rejected","payment failure via x402 protocol returns 402 before generating numbers"],"whenToPreferThis":"Prefer this endpoint when you need truly unbiased uniform random integers — especially when using modulo-based alternatives would skew results at range boundaries. Also ideal when you need multiple unique draws (lottery-style) without replacement, or when you need no API key or account setup and are comfortable with per-call micropayment pricing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:58:51.492Z","isFirstParty":false}