Random Number Generator
Draw random integers or decimals with the browser’s cryptographic generator (crypto.getRandomValues).
Range & count
Limits
- Uses crypto.getRandomValues only. Will not run if the browser does not provide Web Crypto.
- Not an audited lottery or official drawing system. No seed, no replay.
- At most 10,000 numbers per draw. Unique mode is for integers only.
See the full list under Limits and how it works below.
Numbers
How to use Random Number Generator
- Set the range and how many numbersFor whole numbers the range is inclusive on both ends. For decimals the draw is in [minimum, maximum).
- Optional unique integersTurn on unique values to sample without replacement. You cannot ask for more unique integers than the range contains.
- Generate and copyEach click draws new values. There is no seed and a sequence cannot be replayed.
Limits and how it works
- Uses crypto.getRandomValues only. Will not run if the browser does not provide Web Crypto.
- Not an audited lottery or official drawing system. No seed, no replay.
- At most 10,000 numbers per draw. Unique mode is for integers only.
- Integer range must fit in 2^32 distinct values.
Cryptographic randomness from your browser
Integers are drawn with rejection sampling so every value in the inclusive range is equally likely (no modulo bias). Decimals use a 53-bit uniform value in [0, 1) scaled to your range. The source is crypto.getRandomValues, the Web Crypto interface provided by the browser.
This is suitable for games, sampling and most everyday uses. It is not an audited lottery, raffle or drawing system, and it cannot reproduce a sequence from a seed.
Frequently asked questions
Is this the same as Math.random()?
No. Math.random() is not specified as cryptographically strong. This page uses crypto.getRandomValues only.
Why can’t I set a seed?
A cryptographic generator is not designed to be replayed. If you need a repeatable sequence, you want a seeded PRNG, which this page does not provide.
Are the numbers uploaded?
No. They are generated in your browser and never sent to a server.
Related tools
All toolsPassword Generator
Generate strong random passwords and passphrases with your browser’s secure random generator.
Scientific Calculator
Trigonometry, logs, factorials and expressions, in degrees or radians.
Average Calculator
Mean, median, mode and range, or a weighted average.
Hash Generator
MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of text or files.