Random Number Generator
Random Number Generator random integer number picker unique random numbers number drawHow to use Random Number Generator
Enter inclusive minimum and maximum integers, choose how many results you need, and decide whether repeats are allowed. Select Generate numbers again whenever you need a new set.
Random integers with fewer selection biases
The generator uses the browser Web Crypto API and rejection sampling, which avoids the uneven distribution caused by simple remainder-based mapping.
Generate numbers without repeats
Turn off duplicates for classroom selections, sample positions, game orders, or other cases where each integer should appear at most once.
Appropriate uses and limits
This tool suits ordinary games, demonstrations, sampling, and everyday choices. Do not use it to create cryptographic keys, conduct regulated drawings, or guarantee gambling fairness.
Random Number Generator FAQ
Are both endpoints included?
Yes. Minimum and maximum can both be generated.
Why can generation fail without repeats?
The requested quantity cannot exceed the number of distinct integers in the range.
Related tools
Definition and result meaning
A random-number generator samples integers from a chosen inclusive range. With replacement, each draw is independent and duplicates are allowed; without replacement, each selected integer is removed.
Use this tool for games, classroom selection, test data, and low-stakes draws. Record range, replacement rule, and generated result when reproducibility or audit matters.
Logic and formula
The page uses browser cryptographic random values and rejection sampling to reduce modulo bias, then maps accepted values into the requested integer range.
Keep full precision through intermediate steps when checking the result. Round only the final value to the precision the task needs; early rounding can compound into a visibly different answer.
Worked example
For minimum 1, maximum 6, and count 3 with repeats allowed, a possible result is 2, 6, 2. Each value lies in the inclusive six-value range and the duplicate is valid.
Check every result is an integer from 1 through 6. Without repeats, also confirm count of distinct results equals requested count.
Assumptions, edge cases, and limitations
Minimum and maximum are included. Without replacement, count cannot exceed range size. Random means individual runs are unpredictable, not that every small sample looks evenly distributed.
No browser draw proves fairness of a contest, identity of entrants, or tamper-free operation. Regulated, valuable, or adversarial selections need documented independent controls.
Calculations run in this browser and entered values are not submitted to Awesome Tools. JavaScript numbers have finite precision, so extremely large values or long decimal expansions can be rounded. Use exact-decimal or domain-specific software when contractual, scientific, or financial rules require controlled precision.
Common mistakes
Common errors include expecting no duplicates when replacement is enabled, confusing a streak with proof of bias, and changing the entrant range after seeing results.
Write down units beside inputs before calculating. A numerically correct result can still be unusable when values represent different units, periods, populations, or definitions.
Result-checking FAQ
Can I reproduce the same draw with a seed?
No. This page intentionally does not expose a seeded deterministic mode. Save the generated output if you need a record.
How should I verify an important result?
Recalculate from the original inputs, confirm units and signs, and use the stated inverse or reasonableness check. For decisions governed by a school, retailer, contract, measurement standard, or other external rule, verify that rule before applying the result.
Authoritative reference
For definitions or rules that affect important use, consult Web Cryptography getRandomValues specification and the governing organization for your specific task.