Random Number Generator
Generate random integers or decimal numbers within any range. Runs client-side with support for multiple numbers, unique sets, and precision control.
Generate between 1 and 100 numbers
Configure the range and click Generate numbers to begin.
crypto.getRandomValues) with uniform distribution.Introduction
Whether you need a random integer for a giveaway, random sample data for a software test, or floating-point coordinates for modeling, this tool provides configurable, uniform random number generation directly in your browser.
How to use this random number generator
- Choose a mode: Select Integer for whole numbers or Decimal for floating-point values.
- Set your range: Enter your minimum and maximum values. Negative values and decimals are fully supported.
- Configure options: Adjust quantity (1–100), decimal precision (1–8 places), and choose whether to allow duplicate values.
- Generate results: Click Generate numbers to compute your numbers instantly.
Common Examples
- Pick a number from 1 to 100: Set minimum to
1, maximum to100, and quantity to1. - Simulate rolling dice: Set minimum to
1, maximum to6, and quantity to2(or more). - Lottery or raffle draw (no duplicates): Set minimum to
1, maximum to50, quantity to5, and uncheck Allow duplicate numbers. - Random probabilities or weights: Select Decimal mode, set minimum to
0, maximum to1, and decimal places to4.
Frequently Asked Questions
Are the minimum and maximum values inclusive?
Yes. Both the minimum and maximum boundaries can be selected. For instance, generating numbers between 1 and 10 can yield both 1 and 10.
How does the duplicate prevention work?
When duplicates are disallowed, the generator ensures that every value in the output set is unique. If the requested quantity exceeds the total possible unique numbers in the chosen range, a clear error message is shown rather than returning fewer items.
What random number algorithm is used?
Generation uses the browser's Web Crypto API (crypto.getRandomValues) combined with rejection sampling to eliminate modulo bias across 32-bit integer ranges.
Can I generate negative numbers?
Yes. You can specify negative values for either or both boundaries (e.g. from -50 to +50).