🎲
Developer/Random Generator

Random Generator

Generate secure random numbers, pick from lists, roll dice, create passwords with strength analysis, generate UUIDs, and sample from Gaussian distributions. Uses crypto.getRandomValues.

6 MODES · CRYPTO SECURE3 modesCrypto secureBatch 100Dice sim
Saved Presets· Auto-save on
▾
La calculadoraPage 1
OUTPUT
Generate 1 secure random number between 1 and 100.

All modes use crypto.getRandomValues — cryptographically secure randomness.
Data Source & Legal Disclaimer
Effective: 2026
Sources: Browser-side processing (no external API)

This tool runs 100% in your browser. All computation happens locally on your device — your input is never uploaded to any server. Results are for reference only.

See all data sources & update policy →
Cómo funcionaPage 2

'Random' isn't one thing — illustrated

This tool only uses cryptographically secure randomness (crypto.getRandomValues). For passwords, UUIDs or anything security-related, Math.random() is the wrong tool: it is a predictable pseudo-random sequence, seeded and visible to the page, not to attackers.

CSPRNG vs Math.random
crypto.getRandomValuesseeded by OS entropyunpredictable · for security Math.random()predictable algorithmfast · NEVER for passwordsUse crypto for anything an attacker would care to guess.

A CSPRNG is seeded from OS entropy (mouse jitter, hardware noise) and is indistinguishable from true randomness. Math.random is a fast, deterministic PRNG seeded with a timestamp — fine for shuffling a demo, dangerous for tokens.

One PRNG, three wrong places

Examples of where pseudo-randomness silently fails.

  1. Session token:If an attacker knows the seed/time, they can replay the 'random' token
  2. Password reset:Guessing one reset link == owning the account — must be CSPRNG
  3. Shuffle seats:Math.random is fine — outcome being guessed has no value
  4. This tool:Every mode routes through crypto.getRandomValues
FAQ y detallesPage 3

Generate cryptographically secure random numbers. Everything runs locally; nothing is uploaded.

FreeToolHub Random Number / Picker / Dice is a free browser-based tool — generate cryptographically secure random numbers. No signup, no upload; everything runs locally in your browser.

Sobre esta herramienta

¿Qué es esta herramienta?

Genera números aleatorios criptográficamente seguros. Elige ganadores de una lista. Lanza dados. 100% en el cliente, sin subidas.

3 modesCrypto secureBatch 100Dice sim

¿Qué es el generador de números aleatorios, sorteador y dados?

La herramienta de números aleatorios, sorteador y dados es un generador gratuito que reúne seis modos de aleatorización en una sola página. Produce enteros aleatorios en cualquier rango, sortea ganadores de una lista que pegas, lanza dados virtuales de 2 a 100 caras, crea contraseñas fuertes con un medidor de fortaleza integrado, genera identificadores UUID por lotes y obtiene valores de una distribución gaussiana (normal) para trabajo estadístico. Todos los modos se apoyan en crypto.getRandomValues, la fuente aleatoria criptográficamente segura del navegador, en lugar del predecible Math.random que usa la mayoría de los sitios web. Eso hace que los resultados sean aptos para sorteos, elecciones en clase y cualquier situación donde importa la equidad. Todo se ejecuta en el cliente, sin registro.

¿Quién debería usar esta herramienta?

Los anfitriones de sorteos y los gestores de redes sociales usan el modo Picker para sortear ganadores de forma transparente: pegas la lista de participantes, eliges uno y capturas el resultado como prueba. Los docentes aleatorizan la selección de alumnado, los asientos y los equipos, o sustituyen los dados perdidos de un juego de mesa por hasta veinte virtuales. Los desarrolladores toman lotes de UUID para semillas de base de datos, generan enteros de prueba u obtienen muestras gaussianas para experimentos de Monte Carlo y simulaciones de datos. Quien abre cuentas nuevas usa el modo Password, que muestra una calificación de fortaleza en vivo desde Very Weak hasta Very Strong según alargas la cadena. Y los estudiantes que hacen ejercicios de probabilidad agradecen unos dados que no se caen de la mesa.

¿Cómo funciona?

(1) Elige un modo en el selector de seis botones: Number, Picker, Dice, Password, UUID o Gaussian. (2) Configura los parámetros de ese modo. Number toma un mínimo, un máximo y cuántos valores quieres (hasta 100). Picker te pide tu lista, una entrada por línea, y cuántos sortear. Dice toma el número de caras (de 2 a 100) y cuántos dados (hasta 20). Password ofrece un control deslizante de 4 a 64 caracteres, conmutadores para minúsculas, mayúsculas, números y símbolos, más una opción para excluir caracteres ambiguos como 0, O, 1 y l. (3) Pulsa Generate. El resultado aparece al instante, se suma al historial móvil de tus últimas diez salidas y se copia al portapapeles con un clic.

¿La aleatoriedad es realmente justa?

Sí, y comprobablemente. La herramienta llama a window.crypto.getRandomValues, la Web Crypto API que extrae entropía de la fuente aleatoria segura de tu sistema operativo, el mismo mecanismo en el que los navegadores confían para las claves TLS. No hay ninguna mezcla del lado del servidor que no puedas inspeccionar ni atajo de Math.random que pudiera sesgar un sorteo. Para un sorteo esto importa: cada participante de tu lista tiene exactamente la misma probabilidad, y como el sorteo ocurre en tu propia máquina y no en un servidor oculto, nadie puede manipularlo. Las contraseñas reciben el mismo trato, y por eso el medidor de fortaleza puede recomendar honestamente longitudes mayores. Para sorteos, juegos y contraseñas, este nivel de aleatoriedad es más que suficiente.

Preguntas frecuentes

Is this random generator cryptographically secure?

Yes. Every mode routes through crypto.getRandomValues, the browser's CSPRNG seeded by operating-system entropy. It is suitable for passwords, tokens, and anything an attacker might try to guess — unlike Math.random(), which produces a predictable sequence that is fine for shuffling a demo but dangerous for security uses.

Why should I never use Math.random() for passwords?

Math.random() is a fast deterministic pseudo-random generator: its internal state is seeded predictably and observable from the page, so outputs can be reconstructed. Session tokens or reset links built on it can be replayed by an attacker who knows the seed time. This tool exists so you never have to make that trade-off.

What modes does the random generator offer?

Six modes: secure random numbers in a range, random picker from your own list, dice roller (any sided dice, any count), password generator with strength analysis, RFC 4122 v4 UUID batch generation, and Gaussian (normal-distribution) sampling via the Box-Muller transform — all from the same crypto-secure source.

How strong are the generated passwords?

The password mode evaluates each result live: a five-step strength meter, the entropy in bits, and an estimated crack time. A 16-character password with all character classes yields roughly 100 bits — far beyond brute-force reach — while the suggestions line tells you exactly which toggles would strengthen a weak result.

Is the random number generator truly random?

It uses the Web Crypto API's getRandomValues(), which provides cryptographically secure pseudo-random numbers (CSPRNG) drawn from the operating system's entropy pool. This is suitable for security-sensitive applications like generating tokens, lottery draws, or picking contest winners. It is significantly more random than Math.random().

Can I pick a random winner from a list of names?

Yes. Paste a list of names or items (one per line or comma-separated), set the number of winners to pick, and the tool selects them randomly without replacement. This is useful for giveaways, raffle draws, classroom random selection, and A/B test assignment.

Herramientas relacionadas

Compartir:𝕏inf⬆
Joke of the Day
Oct 22

What do you call a really smart cookie?

Free core, no account

Keep the Free Edition Free

No signups, no data sold. Every tool is free to use — the free tier allows 5 downloads or saves per day, and the optional Pro plan ($7/mo, $59/yr) adds unlimited downloads, batch processing, white-label exports and an ad-free experience.

☕Support me on Ko-fi— support the free tier

100% of proceeds go towards hosting & building more free tools.