Random Number Generator
Draw one or more numbers from a range in the browser — classroom picks and casual raffles, not lottery draws or security tokens.
How to use
- Set minimum and maximum. For a die, 1 and 6 with integers on.
- Choose whole numbers or decimals, and how many draws (1–100).
- Press Generate. Typing alone does not redraw.
- Do not use the output as a password, API key or official prize draw.
How it works
Integer mode picks uniformly from every whole number between ceil(min) and floor(max), inclusive. 1 to 6 is a fair die if the generator is fair. 1.2 to 1.4 with integers on contains no integer, so there is no result.
Decimal mode uses [min, max): the minimum can appear, the maximum is the exclusive top. That matches many programming libraries.
Math.random is a pseudo-random generator in the browser. It is fine for “pick a student” or a board-game substitute. It is not a documented entropy source. Do not generate passwords here — use the password generator, which is built for that job — and do not run a cash raffle on it.
Count 1–100. Draws are independent; repeats can happen. Nothing is uploaded.
A coin is 1–2 with integers on. A classroom roster is 1–n. A deck position is 1–52. If you need unique picks without replacement, generate extras and drop duplicates yourself — this is not a shuffle. Seeding is not exposed; two people pressing Generate can still get different lists.
Formula
Integer: uniform choice from ceil(min) through floor(max), inclusive Decimal: min + u × (max − min), where u is a random value in [0, 1)
Worked examples
A die roll
integers from 1 to 6, count 1 → one of 1, 2, 3, 4, 5 or 6
Three classroom numbers
integers from 1 to 30, count 3 → three integers in that range
Everyday integer ranges
| Use | Minimum | Maximum |
|---|---|---|
| Coin | 1 | 2 |
| Six-sided die | 1 | 6 |
| Percent roll | 0 | 100 |
| Classroom of 30 | 1 | 30 |
| Deck position | 1 | 52 |
Useful notes
- Press Generate; the list does not live-update.
- Not for cryptography or official lotteries.
- Integer range must contain at least one integer.
FAQ
- Are the numbers truly random?
They are pseudo-random numbers from the browser. That is fine for everyday picks. Do not use this page for security tokens or official drawings.
- Is the range inclusive?
For integers, yes — both ends can appear. For decimals, the minimum can appear and the maximum is the exclusive upper bound.
- Do the numbers leave my browser?
No. Generation runs locally and is not uploaded.
- Can the same number appear twice in a list of 5?
Yes. Draws are independent. This is not “sample without replacement.”
- Should I generate a password here?
No. Use the password generator. This page is an everyday RNG, not a secret-generation tool.
Related tools
Rounding Calculator
Round a number to a chosen number of decimal places, or to the nearest ten, hundred or thousand.
Average Calculator
Find the arithmetic mean, count and sum of a list of numbers pasted or typed in your browser.
Factor Calculator
List every positive factor of an integer and see its prime factorization.
See all Math tools.