Random Number Generator

—

Set Minimum, Maximum, and How many, then click Generate. You get whole numbers from the low end through the high end. The same number may appear more than once. Draws use Math.random.

How to use

  1. Enter Minimum and Maximum. The boxes start at 1 and 100. The values are read as integers. If the minimum is greater than the maximum, the page swaps them before it draws.
  2. Set How many. The count is clamped from 1 to 100. The box starts at 1. A blank count is treated as 1.
  3. Click Generate. Each draw is inclusive, so both ends can appear. The generator is Math.random, and each number is chosen on its own.
  4. With a count of 1, the number shows in the large result and the list stays hidden. With a higher count, the first number is the large result and the full series is shown as a comma-separated list.

When it helps

Classroom picks, a range for mental math, or several integers at once when repeats are acceptable. It will not show dice faces or add them. Asking for ten numbers between 1 and 6 is not the same as rolling ten dice, because this page does not draw a die graphic or a total.

If you want each face and a sum, use the dice roller. It offers D6, D4, D8, D10, D12, and D20, and at most ten dice. If you only need two outcomes, the coin flip shows heads or tails after a short animation and keeps no log.

Limits

Repeats are allowed. Ten numbers from 1 to 3 can repeat values, and the page will not switch to a shuffle without replacement. Math.random is fine for games and ordinary picks. It is not a source to cite for a draw that has to be audited.

A blank minimum is treated as 1 and a blank maximum as 100. Typing 0 in a bound is also treated as blank, so an endpoint of zero is not honored. There is no decimal mode and no unique-only switch. The list is not saved when you leave.

Questions

Are the ends included?

Yes. A minimum of 1 and a maximum of 6 can return 1 and can return 6. The draw is an integer, not a number with a fraction.

What if I reverse the boxes?

The page swaps them. A minimum of 50 and a maximum of 10 is drawn as 10 through 50. You do not have to fix the order yourself.

Can I get 100 unique numbers?

You can ask for 100 numbers, which is the top of How many, but they are independent draws. Uniqueness is not guaranteed, and repeats stay in the list.