Random Number Generator
Generate random integers or floats in any range. Bulk output, allow-repeats toggle, seeded mode for reproducible runs.
Set a range and hit Generate.
01 — Overview
How the Random Number Generator works
A focused random number generator with the controls you actually need: range, count, integer vs float, decimal places, allow-repeats. Optional seed for reproducible output across runs — useful for fixtures and tests. Cryptographically random by default.
02 — Use cases
When to use the Random Number Generator
- 01
Generate a list of unique IDs for a small test dataset
- 02
Draw lottery or raffle picks (with a seed if you want auditability)
- 03
Get a single random number in a range without firing up a REPL
- 04
Sample N values from a distribution for quick experimentation
03 — Examples
Random Number Generator examples
100 × integers, 1-1000, no repeats
ex 01742, 18, 903, 256, 411, ...
Unique integers drawn from a 1000-wide range.
1 × float, 0-1, 6 decimals
ex 020.418273
A single float, useful for quick sampling.
6 × integers, 1-49, no repeats
ex 037, 19, 23, 31, 42, 45
Drawn without replacement, so no number appears twice.
seed "launch-2026", 5 × integers, 1-100
ex 0463, 12, 88, 41, 27
The same seed returns this exact sequence every time, on any machine.
04 — FAQ
Random Number — frequently asked questions
Is this cryptographically random?
Why does 'no repeats' have an upper limit?
What does the seed actually do?
What is modulo bias and does this avoid it?
Can I use this for a giveaway or prize draw?
Why not just use Math.random()?
05 — Reference
Specs and further reading
The primary sources this tool follows. Where behaviour is defined by a specification, we link the specification rather than a summary of it.
- Crypto.getRandomValues()
MDN Web Docs — The cryptographically secure generator used in secure mode.
- Math.random()
MDN Web Docs — Why the standard PRNG must not be used for anything security-sensitive.
- SP 800-90A Rev. 1
NIST — Recommendation for random number generation using deterministic bit generators.
07 — More
Tools that pair with Random Number
UUID Generator
Generate UUIDs (v1, v4, v7, v8) in bulk, with format options and a validator. Cryptographically random by default.
PIN Generator
Generate 4, 6, or 8-digit PINs that avoid obvious patterns like 1234, 0000, or birthdays.
Test Credit Card Generator
Stripe-style test card numbers — successful charges, declines, 3DS challenges. Valid Luhn, never charges.