{"uid":"cap_uN_cPqAJBJuM33q0CucBM","slug":"gl1tch-verifiable-random-number-generator-9c4f0bc0","name":"GL1TCH Verifiable Random Number Generator","description":"Verifiable random numbers: integers in your range from a future drand quicknet round (League of Entropy threshold-BLS beacon), so neither the caller nor the server can know them at request time. Each result carries the round signature and the commitment, so anyone can recompute and check it. Use it for raffles, giveaways, lotteries, fair allocation and games. Not charged on failure.","url":"https://gl1tchbased.xyz/api/x402/random?utm_source=zero.xyz","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":[],"properties":{"max":{"type":"string","description":"Largest value (integer, default 100)"},"min":{"type":"string","description":"Smallest value (integer, default 1)"},"salt":{"type":"string","description":"Your own label, bound into the commitment (1-64 chars of A-Z a-z 0-9 _ . : -)"},"count":{"type":"string","description":"How many integers, 1-1000 (default 1)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["kind","values","spec","proof"],"properties":{"kind":{"enum":["ints"],"type":"string"},"spec":{"type":"object","required":["kind","min","max","count"],"properties":{"max":{"type":"integer","description":"Largest value"},"min":{"type":"integer","description":"Smallest value"},"kind":{"enum":["ints"],"type":"string"},"count":{"type":"integer","description":"How many values"}}},"proof":{"type":"object","required":["source","chainHash","round","randomness","signature","requestId","commitment","verify"],"properties":{"round":{"type":"integer","description":"drand round the values come from"},"source":{"enum":["drand-quicknet"],"type":"string"},"verify":{"type":"string","description":"How to recompute and check the values"},"chainHash":{"type":"string","description":"drand quicknet chain hash"},"requestId":{"type":"string","description":"sha256 of the commitment"},"signature":{"type":"string","description":"drand BLS signature of the round"},"commitment":{"type":"string","description":"What was committed before the round existed"},"randomness":{"type":"string","description":"sha256 of the round signature"}}},"values":{"type":"array","items":{"type":"integer"},"description":"The random integers, in order"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bhLQ6O6aEeJN4jWPN2Abn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns one or more cryptographically verifiable random integers in a caller-specified range, backed by a future drand League of Entropy threshold-BLS beacon round with full proof for independent verification.","exampleAgentPrompt":"Pick 5 random winners from ticket numbers 1 to 500 for my raffle — I need cryptographic proof that the numbers were unforeseeable so participants can verify them independently. Use 'myraffle2025' as the salt.","exampleUseCases":[{"title":"NFT whitelist raffle draw","prompt":"I need to randomly select 10 wallet slots from numbers 1 to 2000 for my NFT whitelist raffle, with cryptographic proof anyone can verify — use 'nft-wl-drop-june' as the salt so it's tied to this specific event."},{"title":"Fair prize allocation for giveaway","prompt":"Pick 3 random prize winners from 1 to 150 for my Twitter giveaway, and give me a drand proof with the round signature so I can post it publicly and show the draw was fair. Salt it with 'twittergiveaway150'."},{"title":"Provably fair in-game dice roll","prompt":"Roll 2 random numbers between 1 and 6 for a dice mechanic in my game — I need the drand beacon proof so players can confirm the outcome wasn't rigged."}],"resultDescription":"A JSON object containing: an array of random integers within the requested range; a spec object confirming the min, max, and count; and a proof object with the drand source identifier, chain hash, round number, raw randomness (sha256 of round signature), BLS round signature, commitment (what was committed before the round existed), request ID (sha256 of commitment), and a human-readable verification instruction string. All fields needed to independently recompute and validate the result are included.","failureModes":["drand beacon round not yet available — request may need to be retried","invalid min/max range (min >= max or non-integer values)","count out of range (must be 1–1000)","salt contains disallowed characters or exceeds 64 chars","payment failure — not charged on error responses","network timeout reaching drand quicknet"],"whenToPreferThis":"Choose this endpoint when you need provably fair, publicly verifiable random integers — especially for raffles, lotteries, giveaways, games, or any allocation where participants must be able to independently confirm the result was not manipulated. Unlike pseudo-random or server-side RNG, every result is tied to a future drand League of Entropy BLS threshold beacon round that neither the caller nor the server could have known at request time, and the full cryptographic proof is returned for audit. Prefer this over standard RNG when trust, transparency, and auditability are requirements.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:37:06.311Z","isFirstParty":false,"canonicalSlug":"gl1tch-verifiable-random-number-generator-9c4f0bc0"}