Space / Enter Generate
Ctrl+C Copy result
Ctrl+H Save to history
Ctrl+E Export list
↑↓ Adjust max
R Roll dice
Cryptographically Secure · Web Crypto API

Random Number Generator

True random numbers using the Web Crypto API. Single, bulk, dice, lottery, Gaussian, sequences and more — all in one tool.

Min: 1
Max: 100
Mode: Integer
Include endpoints (min & max possible)When ON, min and max can appear as results
Even numbers only
Odd numbers only
No duplicates (unique only)Only available when count ≤ range size
Sort ascending
Decimal numbers
d4
d6
d8
d10
d12
d20
d100
Custom
1
Total:
Sort balls ascending
Pick only a subsetChoose how many to extract from the sequence
μ=0
σ=1
Saved numbers (localStorage · up to 100)
No saved numbers yet. Generate and click Save to History.

How to Use This Tool

1

Choose a Mode

Pick Single, Bulk, Dice, Lottery, Sequence or Gaussian from the tabs above.

2

Set Your Range

Enter min and max values. Use presets for lottery formats. Set dice type (d4–d100).

3

Configure Options

Toggle unique only, sorting, odd/even only, decimal mode, subset extraction.

4

Generate

Click Generate or press Space. Results are cryptographically secure via Web Crypto API.

5

Copy or Export

Copy individual numbers, copy all, or export bulk lists as TXT or CSV files.

6

Save History

Save important results to the History tab — stored in your browser localStorage.

Random Numbers Explained

📅 June 2026⏱️ 6 min read✍️ KJSynthora

True Random vs Pseudo-Random Numbers — What's the Difference?

Not all random number generators are created equal. The difference between true random and pseudo-random numbers matters enormously for security, science, and fairness. This guide explains the two types, when each should be used, and why this tool uses the gold-standard cryptographic approach.

Pseudo-Random Number Generators (PRNGs)

Most programming languages use PRNGs by default — including JavaScript's Math.random(). A PRNG starts with a "seed" value and runs a deterministic algorithm to produce a sequence of numbers that looks random. The problem: if you know the algorithm and seed, you can predict every number in the sequence. PRNGs are fast and statistically uniform, but not cryptographically secure.

Cryptographically Secure Random (CSPRNG)

This tool uses the Web Crypto API's crypto.getRandomValues() — the browser's CSPRNG. It draws entropy from truly unpredictable sources like hardware interrupts, mouse movements, and CPU timing. The output is mathematically impossible to predict even if you know every previous number. This is the same standard used in SSL certificates, password generation, and encryption keys.

💡 Why it matters: For giveaways, lotteries, or security-sensitive applications, always use a CSPRNG. Math.random() based tools can theoretically be predicted — this tool cannot.

The Gaussian (Normal) Distribution

The Gaussian mode generates numbers following a bell curve — most values cluster around the mean, with fewer values further away. This distribution appears everywhere in nature: heights, test scores, measurement errors, stock returns. Use it for simulations, statistical modeling, and any scenario where real-world variability needs to be modeled.

Practical Use Cases

  • Giveaways and contests: Use Bulk mode with unique numbers to fairly pick winners from a numbered list.
  • Teaching statistics: Generate Gaussian distributions to demonstrate central limit theorem.
  • RPG gaming: Use Dice mode for tabletop RPG rolls — d4 through d100.
  • Lottery: Use Lottery mode for 6/49, Powerball or custom formats.
  • Random sampling: Use Sequence mode to shuffle an ordered list for random sampling.
  • Security: Use Single mode for OTP seeds, verification codes and random identifiers.

Frequently Asked Questions

How do I generate a random number between 1 and 100?
Set Min to 1 and Max to 100 in the Single tab, then click Generate or press Space. The result is cryptographically secure using the Web Crypto API.
Is this random number generator truly random?
Yes. This tool uses crypto.getRandomValues() — the Web Crypto API — which generates cryptographically secure random numbers from hardware entropy sources. It cannot be predicted or reproduced, unlike Math.random() based tools.
Can I generate unique lottery numbers?
Yes. Use the Lottery tab. Choose a preset format (6/49, Powerball, etc.) or set custom pick count and range. Numbers are always unique within each draw.
Can I generate thousands of random numbers at once?
Yes. Use the Bulk tab and select up to 10,000 numbers. You can enable unique mode, sort ascending, and export as TXT or CSV file.
What is a Gaussian random number?
A Gaussian number follows the normal (bell curve) distribution — most values cluster near the mean, with fewer values further away. Set mean (μ) and standard deviation (σ) in the Gaussian tab.
Are my generated numbers saved anywhere?
Only if you click "Save to History" — they are then stored in your browser's localStorage. Nothing is ever sent to a server.