Random Number Generator

Generate a random number within your chosen range

About this tool

This random number generator picks a whole number between the minimum and maximum you set, inclusive of both ends. It runs entirely in your browser using JavaScript's Math.random() — nothing is sent to a server, and closing the tab clears everything.

Enter a minimum and maximum, hit Generate Number, and the result appears in large type with a one-click Copy to Clipboard button. Press the space bar to generate again without touching the mouse. A history strip keeps your last 50 results, and clicking any past number copies it straight to your clipboard.

When to use it

How the range works

Both bounds are included. With a minimum of 1 and a maximum of 100 there are exactly 100 possible outcomes, each equally likely. The tool computes Math.floor(Math.random() * (max - min + 1)) + min, the standard formula for a uniform integer in a range. Negative numbers work fine too: set -10 to 10 and you'll get one of 21 possible values.

Frequently asked questions

Are the numbers truly random?

They're pseudo-random, generated by your browser's Math.random() function. That's statistically uniform and more than random enough for draws, games, and sampling, but it's not cryptographically secure, so don't use it to generate secrets or passwords.

Can the same number come up twice in a row?

Yes. Every generation is independent, so repeats are normal. If you need unique picks, remove each winner from your range or list before generating again.

Is anything I generate stored or sent anywhere?

No. Generation happens locally in your browser and the history list lives only in the page's memory. Refreshing or closing the tab erases it, and no numbers are transmitted to a server.

Does the tool support decimals or negative numbers?

It generates whole numbers only, but negative bounds are fully supported — a range like -50 to 50 works as expected. For decimals, generate over a wider integer range and divide.