Random Number Generator

Generate random whole numbers within a range you choose. Numbers come from your browser’s cryptographic random source, so nothing is uploaded.

Loading…

About the Random Number Generator

This tool picks random whole numbers inside the range you set, from a minimum up to a maximum you choose, inclusive of both ends. It is handy for drawing raffle and giveaway winners, rolling custom dice, assigning lottery-style numbers, sampling rows for a spot check, or just making an unbiased choice. You can pull a single number or a batch in one go when you need several picks at once.

How to use it

  • Enter the lowest and highest numbers you want to allow.
  • Choose how many numbers to draw.
  • Generate, and copy the result for your draw or record.

Numbers come from your browser's crypto.getRandomValues, which gives a high-quality, evenly distributed result with no detectable bias toward any value in the range. Note that, unless your tool is set to exclude repeats, each draw is independent, so the same number can appear more than once in a batch - exactly what you want for events like dice rolls. Everything is computed locally, so your ranges and results are never sent anywhere.

Frequently asked questions

Are the numbers from a range inclusive of the endpoints?

Yes. If you set a minimum of 1 and a maximum of 10, every result will be a whole number from 1 to 10, and both 1 and 10 can come up.

Is this random enough for a giveaway or raffle?

Yes. The generator uses your browser's cryptographic random source, which produces an even, unbiased distribution across the range - well suited to fair draws and prize picks.

Can the same number appear twice when I draw several?

By default each draw is independent, so duplicates are possible in a batch, just like rolling the same number twice on a die. If you need unique values, use an option to exclude repeats where available, or generate from a wide enough range.

Does the tool send my range to a server?

No. The range you enter and the numbers produced are handled entirely in your browser. Nothing is uploaded or stored.

Related tools