Random Number Generator
Generate random numbers in a range, with integers or decimals, uniqueness and secure randomness.
Runs entirely in your browser — your input never leaves your deviceAbout this tool
This random number generator produces numbers in any range you set. Choose whole integers or decimals with a set number of places, generate one number or thousands at once, keep them unique, and optionally sort the result.
Genuinely random
Numbers come from the browser's cryptographically secure random source (crypto.getRandomValues) using unbiased sampling — not the predictable Math.random() — so the distribution is even across your range.
Everything runs on your device, so it works offline and nothing is sent to a server.
Frequently asked questions
How does this generate random numbers?
It uses the browser's cryptographically secure random number generator with rejection sampling, which avoids the slight bias a plain modulo would introduce, so every value in your range is equally likely.
Can I generate numbers without repeats?
Yes. Turn on 'Unique' and the generator returns distinct numbers. If you ask for more unique integers than the range allows, it tells you and returns as many as fit.
Can it generate decimals?
Yes. Switch to Decimals and set how many decimal places you want — useful for random prices, coordinates or test data.
What can I use it for?
Drawing raffle or lottery numbers, picking a winner, sampling data, seeding tests, choosing a random item by index, or any time you need an unbiased number in a range.
Is it private?
Yes. Generation happens entirely in your browser and nothing is uploaded or logged.
Related developer tools
Explore more free tools
Every category runs free in your browser — nothing is uploaded.