Random Number Generator
Generate random integers or decimals between any two numbers, up to 10,000 at a time. Allow or forbid repeats, and add a seed for a repeatable sequence.
Generating…
Min and Max are both included. Up to 10,000 numbers per run.
With a seed, numbers come from a repeatable generator (mulberry32) and are predictable. Do not use seeded output for anything secret.
01 · Definition
What is a random number generator?
A random number generator picks numbers from a range so that each possible value is equally likely and no value can be predicted from earlier ones. Cryptographic generators, like the one browsers provide, draw on unpredictable system entropy. Seeded generators run a fixed formula from a starting value, so they repeat exactly, which suits tests and auditable draws.
02 · Overview
How the Random Number Generator works
Pick a minimum and maximum (both included), how many numbers you want, and integers or decimals with 1 to 15 decimal places. Turn off repeats to draw without replacement. By default numbers come from crypto.getRandomValues with rejection sampling, so every value in the range is equally likely. Enter a seed to switch to a repeatable generator (mulberry32) that returns the same sequence for the same seed and settings. If Min is above Max, or the count has to be reduced, the tool says so instead of changing your input. Numbers are generated in your browser.
03 · Guide
How the numbers are generated
The range is treated as a list of equally spaced values: whole numbers in integer mode, or steps of 0.01 at two decimal places. The tool picks a position in that list uniformly and formats it. Picking positions rather than rounding a fraction means the two ends of the range are exactly as likely as every value between them.
To pick a position it takes 32 random bits (53 bits for ranges above 2^32 values) and discards any draw that falls in the incomplete final block, a method called rejection sampling. The shortcut of taking the remainder after division would make low values slightly more common whenever the range does not divide 2^32 evenly.
With no seed the bits come from crypto.getRandomValues. With a seed, the seed text is hashed with FNV-1a to a 32-bit state for mulberry32, a small deterministic generator. The same rejection sampling is applied to its output. Seeded output is predictable by anyone who knows the seed and must not be used for secrets.
04 · Use cases
When to use the Random Number Generator
- 01
Pick a number between 1 and 100
- 02
Draw raffle or lottery-style picks with no repeats
- 03
Generate a column of test numbers and copy it one per line
- 04
Publish a seed before a draw so others can reproduce the result
05 · Examples
Random Number Generator examples
Seed launch-2026, 5 integers, 1 to 100, repeats allowed
ex 0125, 4, 19, 61, 98
Enter the same seed and settings and you get exactly this sequence.
Seed launch-2026, 6 integers, 1 to 49, no repeats
ex 0236, 34, 22, 39, 8, 7
Drawn without replacement, so no number appears twice.
Seed dice, 10 integers, 1 to 6
ex 033, 1, 5, 6, 2, 5, 6, 5, 3, 5
Ten rolls of a six-sided die, with repeats.
Seed demo, 1 decimal, 0 to 1, 6 decimal places
ex 040.997446
One of the 1,000,001 six-place values from 0.000000 to 1.000000.
No seed, 50 integers, 1 to 10, no repeats
ex 0510 numbers and the note: Only 10 different values exist in this range, so 10 were generated instead of 50.
An impossible request is reported, not silently changed.
06 · FAQ
Random Number: frequently asked questions
Is this cryptographically random?
Are Min and Max included?
What is modulo bias and does this avoid it?
What does the seed do?
Why did I get fewer numbers than I asked for?
Can I use this for a giveaway or prize draw?
What are the limits?
07 · Reference
Specs and further reading
These are the primary sources this tool follows. Where a specification defines the behaviour, we link the specification, not a summary of it.
- Crypto.getRandomValues()
MDN Web Docs. The cryptographically secure source used when no seed is set.
- Math.random()
MDN Web Docs. Documents that Math.random() is not cryptographically secure, which is why this tool does not use it.
- SP 800-90A Rev. 1: Recommendation for Random Number Generation Using Deterministic Random Bit Generators
NIST. Background on how cryptographic random bit generators are specified.
08 · More
Tools that pair with Random Number
Dice Roller
Roll d4, d6, d8, d10, d12, d20, d100 or a custom die, up to 100 at once, with a modifier. Type dice notation such as 3d6+2 or 2d20kh1.
Coin Flip
Flip a coin online for heads or tails, or flip up to 10,000 at once and see the counts, percentages, full sequence and longest streak.
Random Name Picker
Paste a list of names, then pick one or more winners at random, shuffle the whole list, or split it into teams. Every draw is unbiased.
UUID Generator
Generate UUID v4, v7 or v1, one at a time or up to 1,000. Output as standard, uppercase, braces (GUID), no hyphens, URN or Base64, and decode any UUID you paste.
PIN Generator
Generate random 4, 6 or 8-digit PINs. Optional filters leave out obvious patterns like 1234 and 0000, and PINs that read as dates or years.
Test Credit Card Numbers
Stripe's published test card numbers in one filterable list: successful payments by brand, declines by reason, and 3D Secure. They work in test mode only.