Skip to content

A CLEARER WAY TO WORK IT OUT

Random Number Generator

A random draw can be useful for a game, a practice question or a simple selection. This tool draws integers from the range you choose, with the option to allow repeats or keep every result different.

A random draw can be useful for a game, a practice question or a simple selection. This tool draws integers from the range you choose, with the option to allow repeats or keep every result different.

Your result will appear here.

Your calculation runs in this browser. After changing a value, select Calculate to update the answer.

Your inputs stay in this browser. Change a value, then calculate again to update the result.

How to use the random number generator

Both the lowest and highest numbers belong to the range. The quantity is the number of draws. Repeats are useful for independent draws; unique mode is better when each number should appear no more than once.

Choose the range to match the task before drawing values. A six-sided die uses integers from one through six, while a numbered roster might start at zero or end at a different number. Repeated draws allow the same value to appear more than once. Unique mode is better when you need a set of different selections, but the requested count must fit within the range.

What the result tells you

A range of 1 to 6 can return any of those six numbers. The result is a fresh draw, so another click may produce a different list. There is no single expected sequence to compare against.

A calculation you can check

For minimum 1 and maximum 6, both endpoints can appear. In unique mode the number of requested values cannot exceed six.

Try it in the calculator ↑

Formula and calculation method

Draw an unsigned 32-bit random value and reject values above the largest multiple of the range size. Reduce accepted values modulo the range width, then add the minimum.

Check the assumptions

A draw without repeats cannot contain more numbers than the range has available. For 1 to 6, request no more than six unique results. This tool generates numbers, rather than passwords.

Integer bounds are limited to −1,000,000,000 through 1,000,000,000 and count to 1–1,000. Browser cryptographic randomness must be available; no insecure fallback is used. This is not a certified lottery or gambling system.

Frequently asked questions

Are the endpoints included?

Yes. The minimum and maximum are both possible integer results, so a range from 1 to 6 contains six possible values.

Can I reproduce a previous draw with a seed?

This interface draws fresh random values and does not expose a repeatable seed. Save the displayed result separately if you need a record of a particular draw.

Something looks wrong? Send the calculator name and a non-sensitive example so the issue can be checked.