{"uid":"cap_iiuOJnDxBQ8ZnaOmEHAWn","slug":"foundry-random-number-generator-1ad0acb7","name":"Foundry Random Number Generator","description":"Random numbers from a secure RNG: integers in a range, dice like 2d6, or a coin flip. Input: '1 100', '1 100 5', '2d6' or 'coin'.","url":"https://minty-sprout.onrender.com/v1/random-number?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","maxLength":8000,"description":"'min max [count]', 'NdS' dice, or 'coin'"}}},"responseSchema":{"type":"json","example":{"max":100,"min":1,"type":"integer","source":"OS CSPRNG","values":[34]}},"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_-8q9_x8blDH7qUQrzj9rZ","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 cryptographically secure random numbers as integers in a range, dice rolls (e.g. 2d6), or coin flips using an OS CSPRNG.","exampleAgentPrompt":"Roll 3d6 dice for me using a cryptographically secure random number generator.","exampleUseCases":[{"title":"Tabletop dice roll simulation","prompt":"Roll 2d6 for my Dungeons & Dragons game — I need two six-sided dice results."},{"title":"Random integer in a custom range","prompt":"Give me 5 random numbers between 1 and 100 using a secure random number generator."},{"title":"Coin flip for a decision","prompt":"Flip a coin for me — I need to randomly decide between two options."}],"resultDescription":"Returns a JSON object containing the type ('integer' or 'coin'), source ('OS CSPRNG'), min, max, and a 'values' array with one or more random results. For dice rolls, returns the summed or individual roll values; for coin flips, returns 'heads' or 'tails'.","failureModes":["Invalid input format — malformed dice notation or unrecognized command returns an error","Count value too large or out of range may be rejected","Non-numeric min/max values cause a parse error","min greater than max produces an invalid range error","Payment not provided or insufficient USDC causes 402 response"],"whenToPreferThis":"Choose this endpoint when you need cryptographically secure random numbers (OS CSPRNG), not just pseudo-random output. Ideal for gaming, lotteries, simulations, or any scenario where unpredictable, tamper-resistant randomness matters. Supports flexible input formats including integer ranges with optional count, standard dice notation (NdS), and coin flips in a single unified API.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:57:41.507Z","isFirstParty":false,"canonicalSlug":"foundry-random-number-generator-1ad0acb7"}