{"uid":"cap_SM5Lj-ngFuLCmWf-cQVHJ","slug":"delx-random-int-90c2e71b","name":"Delx Random Int","description":"Generate a secure random integer in a caller-supplied range for $0.001 USDC. Call when you need a CSPRNG draw for ids, jitter, or sampling without installing a crypto library. First-party local only—not a lottery, custody, or production RNG SLA. No API key, no subscription.","url":"https://api.delx.ai/api/v1/x402/random-int","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","bodyType","body"],"properties":{"body":{"type":"object","additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","additionalProperties":true}}}}},"responseSchema":{"type":"json","example":{}},"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_iD7a5kghfxcYOzMK4skWk","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 cryptographically secure random integer within a specified range for $0.001 USDC per call.","exampleAgentPrompt":"Give me a cryptographically secure random integer between 1 and 100 for my raffle draw.","exampleUseCases":[{"title":"Lottery winner selection","prompt":"Pick a secure random integer between 1 and 500 to determine which entry number wins our weekly giveaway."},{"title":"Random game die roll","prompt":"Roll a fair die for me — give me a secure random integer between 1 and 6 for my board game simulation."},{"title":"Randomized A/B test assignment","prompt":"I need to assign users to experiment buckets — give me a cryptographically secure random integer between 0 and 99 to determine which group this user falls into."}],"resultDescription":"Returns a single cryptographically secure random integer within the specified minimum and maximum bounds, suitable for use in security-sensitive, gaming, or probabilistic applications.","failureModes":["Payment not provided or insufficient USDC — returns 402 Payment Required","Range parameters missing or malformed — returns 400 Bad Request","Minimum value greater than or equal to maximum value — validation error","Network timeout or service unavailability — returns 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a cryptographically secure, server-side random integer with a small, predictable cost per call — especially in contexts where client-side randomness is not trustworthy (e.g. gaming, lotteries, security tokens, unbiased sampling). Prefer it over local RNG when auditability or tamper-resistance matters and the cost of $0.001 USDC per call is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T13:07:23.491Z","isFirstParty":false}