Random Number Generator
Generate random integers or floats within custom min/max ranges (with unique flag).
Output will appear here
Click in the output to select all text
Related tools
Random String & Token Generator
Generate random alphanumeric strings, API keys, and test tokens.
UUID Generator (v1, v4, v5, NIL)
Generate RFC 4122 compliant UUIDs (v4 random, v1 timestamp, NIL, or batch).
Mock & Fake Data Generator
Generate mock user names, email addresses, phone numbers, UUIDs, and addresses.
Strong Random Password Generator
Generate strong random passwords or memorable passphrases with a live entropy/strength meter, bulk generation, and ambiguous-character exclusion.
Cryptographic Random Bytes Generator
Generate cryptographically secure random bytes in Hex, Base64, and Uint8 format.
This random number generator produces random integers or floating-point numbers within any custom minimum and maximum range, with an optional unique-values mode to avoid duplicates in a single batch. It's useful for developers seeding test data, teachers generating random problem sets, or anyone settling a decision the old-fashioned way with a digital dice roller. Instead of writing a quick script to get Math.random() output in the right range, this rng tool lets you set bounds, choose integer or float output, specify how many numbers you need, and generate the full set instantly. The unique-values option is particularly handy for tasks like randomly selecting lottery-style numbers or assigning distinct IDs without collisions. Generation happens entirely client-side in your browser using a solid random source, with nothing sent to a server. Set your range and options below to generate random numbers instantly.
Features
- Generates random integers or floating-point numbers
- Custom minimum and maximum range for any use case
- Optional unique-values mode to prevent duplicates
- Bulk generation of multiple numbers at once
- Configurable decimal precision for float output
- Instant regeneration with a single click
- Copy-to-clipboard for the generated list
Why use this random number generator?
- Instant generation with no scripting required
- Fully private - random values are generated locally in your browser
- Accurate range handling with proper inclusive/exclusive bounds
- Flexible enough for testing, games, or educational use
- Free with unlimited generations
Frequently asked questions
Can I generate random numbers without duplicates?
Yes, enable the unique-values option to ensure every number in the generated batch is distinct, similar to drawing lottery numbers.
Is this random number generator cryptographically secure?
It's suitable for general-purpose randomness like testing and games; for cryptographic use cases requiring true unpredictability, use a dedicated secure random bytes generator.
Can I generate decimal (float) numbers instead of whole integers?
Yes, you can switch to float mode and set the desired decimal precision for the generated numbers.
What's the maximum range this tool supports?
The tool supports a wide practical range limited only by standard JavaScript number precision, covering virtually any realistic min/max span.
Can I use this as a dice roller?
Yes, setting the range to 1-6 (or any custom die size) and generating a single integer works exactly like rolling a die.
How many random numbers can I generate at once?
You can generate as many numbers as needed in a single batch, subject only to your browser's performance for very large sets.
Does the tool guarantee a uniform distribution?
Yes, values within the specified range are generated with uniform probability across all possible outcomes.