Random Number Generator
Generates random integers or decimals within a range, optionally unique.
Input
Up to 100,000. Ranges beyond ±2^53 use exact large-range (BigInt) mode.
Output
Press Generate.
Runs entirely in your browser. Your input is not uploaded or stored.
How the method works
Secure mode maps random bits to a range by rejection sampling, so no value is favoured; seeded mode is reproducible but not secure. Fixed example values for illustration — not your result.
How to use this calculator
- Set min, max and step (1 for whole numbers, 0.1 for tenths), how many, and whether repeats are allowed — or switch to shuffling a list. Whole numbers beyond ±2^53 (up to 40 digits, at most 2^128 possible values) use an exact large-range mode.
- Keep Secure randomness, or choose Seeded to get the same sequence again from the same seed.
- Press Generate, then copy the lines or download CSV or JSON. More than 1,000 values are drawn in the background, with Cancel.
How it works
Secure mode uses the browser's crypto.getRandomValues and maps it to your range by rejection sampling, so every value is equally likely (the common x % n shortcut is biased). Large ranges use exact BigInt arithmetic and bitmask rejection: draw just enough random bits, retry if the value is outside the range.
Decimals are picked from the exact grid min, min + step, … max, so both endpoints are as likely as any other value. Without repeats the draw is a uniform sample; shuffles use Fisher–Yates.
Seeded mode (sfc32 seeded by cyrb128, version 1) is reproducible and NOT cryptographically secure.
Worked example
1 to 6, six values, no repeats. Always a permutation of 1–6. Asking for seven without repeats is refused, because only six values exist.
Common mistakes
- Using seeded output for passwords or keys.
- Rounding random decimals yourself — the endpoints then come up half as often.
- Treating a histogram of a few dozen draws as proof of bias.
Tips
- Runs entirely in your browser. Your input is not uploaded or stored.
Frequently asked questions
Is it cryptographically secure?
Secure mode draws from the browser's cryptographic source, but this page is for picks, sampling and testing — not for generating passwords, keys or audited prize draws.
Privacy?
Runs entirely in your browser. Your input is not uploaded or stored.
Related tools
- UUID Generator
- Cron Expression Parser
- HTML Encoder / Decoder
- HTML to Markdown Converter
- JWT Decoder
- Line Height Calculator
Explore more in PDF, Image, File, Data & Developer Tools.
Cite this tool
Zerdly. (2026). Random Number Generator. Retrieved from https://www.zerdly.com/tools/random-number-generator/
Tip: Enter any known values to calculate the remaining results.
Designed to run locally in your browser. Tool inputs are not intentionally stored by Zerdly unless stated otherwise.



