{"uid":"cap_Msf0Tp-mZkSDFewUDVM9h","slug":"cryptographically-secure-random-number-generator-8353c764","name":"Cryptographically Secure Random Number Generator","description":"Landing page para tu negocio en 24 horas: textos, diseño para celular y botón de WhatsApp. Boceto gratis: ves la primera versión antes de pagar. USD 39 de lanzamiento.","url":"https://landingen24h.com/api/x402/util/random?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"max":{"type":"integer","default":100},"min":{"type":"integer","default":0},"bytes":{"type":"integer","default":16,"maximum":256,"minimum":0},"count":{"type":"integer","default":1,"maximum":100,"minimum":1}}},"responseSchema":{"type":"json","example":{"hex":"6bf3c329551a5ff3","max":6,"min":1,"bytes":8,"source":"crypto.getRandomValues (CSPRNG)","integer":5,"integers":[5,6,4]}},"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_JoW3pa21PIhsvkhtTSxVS","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 integers and hex bytes using the browser's CSPRNG (crypto.getRandomValues)","exampleAgentPrompt":"Generate 5 cryptographically secure random integers between 1 and 100, and also give me 16 random bytes as a hex string.","exampleUseCases":[{"title":"Secure token generation for auth flow","prompt":"I need a 32-byte cryptographically secure random hex string to use as a session token or nonce — can you generate one?"},{"title":"Dice-roll simulation for game logic","prompt":"Roll 10 random integers between 1 and 6 for me, like rolling 10 dice, using a crypto-secure random source."},{"title":"Random sampling index picker","prompt":"Pick 3 random integers between 0 and 49 so I can randomly sample items from my list of 50 entries — make sure they're truly random, not pseudo-random."}],"resultDescription":"Returns a JSON object containing: a random integer within the specified range, an array of random integers (length = count), a hex string of random bytes, and metadata (min, max, bytes, source label indicating 'crypto.getRandomValues (CSPRNG)').","failureModes":["bytes > 256 returns validation error","count > 100 returns validation error","count < 1 or bytes < 0 returns validation error","non-integer values for min/max/bytes/count may cause type errors","payment failure returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need verifiably cryptographically secure random values (CSPRNG-backed) rather than pseudo-random numbers, especially for security-sensitive use cases like token generation, nonces, or fair sampling. Prefer it over language-native Math.random() equivalents when tamper-resistance or auditability matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T06:38:11.155Z","isFirstParty":false,"canonicalSlug":"cryptographically-secure-random-number-generator-8353c764"}