{"uid":"cap_zR81W7J3iLj4fGGv3ocs2","slug":"forgemesh-provably-fair-random-number-generator-ea154076","name":"ForgeMesh Provably Fair Random Number Generator","description":"Random number API with proof: an integer in your range plus the HMAC-SHA256 server seed revealed so the draw is verifiable after the fact. Provably fair randomness for games, raffles, and tie-breaking agents.","url":"https://x402.forgemesh.io/random-number","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"max":{"type":"string","description":"default 100"},"min":{"type":"string","description":"default 1"},"client_seed":{"type":"string","description":"your seed for verifiability"}}},"responseSchema":{"type":"json","example":{"proof":"HMAC-SHA256(server_seed, client_seed) first 4 bytes mod range — recompute to verify","value":4,"server_seed_revealed":"e3b1..."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_eAJJGIezm7-cxHO46NBi3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a random integer within a specified range and returns an HMAC-SHA256 server seed for post-draw verification, enabling provably fair randomness.","exampleAgentPrompt":"Roll me a provably fair random number between 1 and 500 using my seed 'myRaffle2024' so I can verify the draw afterward.","exampleUseCases":null,"resultDescription":"Returns a random integer within the requested min-max range, along with the HMAC-SHA256 server seed so the caller can independently verify the draw was fair and not manipulated after the fact.","failureModes":["Invalid min/max values (e.g. min greater than max) resulting in a 400 error","Non-numeric min or max strings causing parsing errors","Payment failure or insufficient USDC balance blocking the request","Server-side seed generation failure returning a 500 error"],"whenToPreferThis":"Choose this endpoint when you need auditable, provably fair randomness — such as for games, public raffles, giveaways, or any tie-breaking scenario where participants must be able to verify the result was not tampered with. Unlike a plain RNG, it returns an HMAC-SHA256 server seed for post-draw verification and supports a client seed for combined fairness.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:02:48.674Z","isFirstParty":false}