Where do the random numbers come from?
The tool uses your browser’s Web Crypto API (crypto.getRandomValues()). The browser supplies random values, and the tool maps them into the range you enter.
What is the maximum range?
Use whole-number bounds between −9,007,199,254,740,991 and 9,007,199,254,740,991. The range can contain up to 9,007,199,254,740,991 values. To draw 10 unique numbers, choose a range with at least 10 values, such as 50 to 59.
Can I generate decimal numbers?
Yes. Select 1, 2, or 3 decimal places. For example, use a minimum of 0, a maximum of 1, and 2 decimal places to generate values such as 0.38 or 0.91.
How many decimal places can I use?
You can choose 0 to 3 decimal places in the current UI. Zero gives you whole numbers, while 1–3 decimal places are useful when you want fractional values for estimates, lightweight simulations, or test data. The generator rounds each value to the selected precision, so 4, 4.2, 4.23, and 4.234 are all valid outputs depending on the setting you choose.
What does Unique mean?
With Decimals set to 0, Unique draws whole numbers without replacement. If the range contains fewer numbers than the selected count, you get every available number once.
Can decimal results stay unique?
Not reliably. Decimal mode rounds each value to the precision you choose, so two different raw values can collapse to the same displayed number after rounding. If uniqueness matters, use whole-number mode with Unique enabled, or generate integers at a higher precision and convert them in your own workflow. That gives you deterministic control over whether duplicates are allowed.
Can I use this for a lottery draw or raffle?
Yes — this is one of the most common uses. Set your min to 1 and max to the highest ticket number (e.g., 100 for a 100-person raffle), then generate 1 unique number to pick the winner. For multi-winner draws, increase the count to 3 or 5 and enable Unique so the same number cannot win twice. Because the generator uses the Web Crypto API rather than Math.random(), the results are cryptographically unpredictable — suitable for fair draws.
Can I use this for statistics or simulations?
Yes. For basic Monte Carlo simulations, generate a large batch of random numbers and apply your formula or model to each result. For random sampling from a dataset, generate unique random numbers in the range 1–N (where N is your dataset size) to select which rows or items to include — the Unique option ensures no item is sampled twice. For simple A/B split assignment, generate a random number between 1 and 100 and route values ≤50 to Group A and >50 to Group B. The Web Crypto API ensures results are unpredictable, avoiding the bias that can appear with low-entropy pseudorandom generators like Math.random().
What is the difference between a random number generator and a dice roller?
A dice roller is a specific random number generator pre-configured to match standard die faces — a six-sided die rolls 1–6, a twenty-sided die rolls 1–20. This random number generator is more general: you set any min and max, so you can replicate any die (set 1–6 for a d6, 1–20 for a d20) or create arbitrary ranges a physical die cannot represent, like 1–37 for roulette or 0–999 for a three-digit combination. Batch mode also lets you roll multiple dice simultaneously and optionally sort the results.