Home › Math Calculators › Random Number Generator
Need a random number? Pick a range and get whole numbers or decimals instantly.
How the calculation works
Choose a minimum, a maximum and how many numbers you need. Numbers are drawn using your browser’s secure random generator. Turn on ‘No duplicates’ to draw without repeats, such as for a raffle.
Formula used
Random integer = minimum + random value × (maximum − minimum + 1)
Example
Choosing 5 numbers between 1 and 100 might return 56, 19, 58, 33 and 89.
About random numbers
What this generator does
It picks numbers between the minimum and maximum you choose. You can ask for several numbers at once, and decide whether the same number may appear more than once.
Pseudo-random numbers
Computers produce pseudo-random numbers using a formula that behaves like chance. They are fine for games, drawings, sampling and classroom use. For cryptography and security use a dedicated secure generator.
Common uses
Choose a raffle winner, pick lottery style numbers, split people into groups, sample items from a list or settle a friendly decision.
Fairness
Every number in the range has the same chance of being picked. Past results do not affect future ones, so a number that has not appeared is not due.
More maths helpers
Stuck on a slightly different problem? The Scientific Calculator, Average Calculator and Standard Deviation Calculator cover the neighbouring topics and show their working as well.
Frequently asked questions
Are the numbers truly random?
They come from your browser’s cryptographic random generator, which is suitable for games and draws.
Can I get decimals?
Yes. Choose ‘Decimals’ and set the decimal places.
Results are estimates for general information only and are not professional financial, medical or legal advice.
Related calculators
📐
A free online scientific calculator with trigonometry, logarithms, powers, roots, factorials and…
📐
Calculate the standard deviation, variance, mean and more for a set of numbers.
📐
Improper Fraction to Mixed Number Calculator
Convert an improper fraction to a mixed number, or a mixed number to an improper fraction, with the…
📐
Divide whole numbers by hand-style long division with quotient, remainder and every step shown…
📐
Find the greatest common divisor and least common multiple of two whole numbers.