The random number generator creates unpredictable numbers using your browser's cryptographically secure API. Set a range, choose how many numbers, and pick from options like unique values, decimals, and sorted output — or use a preset to roll dice or pick lottery numbers.
Random Number Generator
How to Use the Random Number Generator
This random number generator uses your browser's crypto.getRandomValues() API for cryptographically secure results — far more random than JavaScript's built-in Math.random(). Each result is statistically unpredictable.
Basic Use: Set Min, Max, and Count
Enter the minimum and maximum values for your range. Set "How Many" to the number of results you need — from 1 to 10,000. Click Generate. For a single random number between 1 and 10, use min=1, max=10, count=1.
Using the Unique Numbers Option
Enable "Unique numbers only" to ensure no number appears twice in the results — like drawing slips from a hat without putting them back. The count is limited to the range size: you can't pick 10 unique numbers from a range of only 5. This option is ideal for random team assignments, lottery simulations, and fair draws.
Dice and Lottery Presets
Click any dice preset (d4 through d20) to instantly configure and roll that die. The Lottery preset picks 6 unique numbers from 1–49, matching the standard Lotto format. These presets set the min, max, count, and unique settings automatically.
Generating Decimal Numbers
Enable "Allow Decimals" and choose decimal places (1–6) for fractional results. Use min=0, max=1 for a random probability value (e.g., 0.7423). Use min=0, max=100 with 2 decimal places for a percentage like 63.41%.
FAQ
Is this random number generator truly random?
It uses the browser's crypto.getRandomValues() API, which provides cryptographically secure pseudo-random numbers far superior to Math.random(). This makes results statistically unpredictable and suitable for fair draws, simulations, and games.
What is the maximum number of random numbers I can generate?
You can generate up to 10,000 numbers at once. With unique mode enabled, the count is capped by the range size — you can't pick more unique numbers than exist between min and max.
How does the unique numbers option work?
When enabled, each generated number appears at most once in the results — like drawing numbers from a hat without replacement. This is useful for lottery simulations, random sampling without repetition, or assigning unique IDs.
What are the dice presets?
The presets simulate standard polyhedral dice: d4 (1–4), d6 (1–6), d8 (1–8), d10 (1–10), d12 (1–12), and d20 (1–20). Click any preset to instantly roll that die. The Lottery preset picks 6 unique numbers from 1–49, matching common lottery formats.
Can I generate decimal (float) numbers?
Yes — enable 'Allow Decimals' and choose decimal places (0–6). For example, min=0, max=1, decimals=4 gives values like 0.3847. This is useful for probability simulations or random sampling from continuous distributions.
Is this tool free?
Yes, completely free with no signup required. All calculations run in your browser — no data is sent to any server.
Is my data private?
Yes. Everything runs locally in your browser. No numbers, settings, or history are transmitted anywhere.