Random Number Generator
Generate cryptographically unbiased random integers or decimal numbers across any range (including zero and negative numbers) with uniqueness and sorting.
How to Use Random Number Generator
- Enter your Minimum and Maximum values (positive, zero, or negative numbers are all supported).
- Specify the quantity of numbers to generate (up to 1,000) and whether duplicates are allowed.
- Optionally enable Decimal Numbers (1–10 decimal places) and choose Ascending or Descending sort order.
- Click Process to generate your random numbers along with Sum, Mean, Median, Min, and Max statistics.
Related Other Utilities Tools
-
Dice Roller & Fair Coin Flipper
Roll polyhedral tabletop RPG dice (D4, D6, D8, D10, D12, D20, D100) and flip fair coins with modifier math and expected value stats.
-
Random Decision Picker & Choice Wheel
Enter options to make fair, random selections with unbiased Web Crypto Fisher-Yates shuffling.
-
Random Name / Item Picker
Pick unbiased raffle winners, student names, or giveaway items using Web Crypto Fisher-Yates array shuffling.
-
Average Calculator
Calculate arithmetic mean, median, mode, range, geometric mean, harmonic mean, and sample or population standard deviation for any dataset.
Frequently Asked Questions
Why does EverySolve's Random Number Generator use Web Crypto instead of Math.random()?
JavaScript's Math.random() uses a predictable xorshift128+ pseudo-random algorithm that is not cryptographically secure. EverySolve uses window.crypto.getRandomValues() seeded by operating-system hardware entropy and applies rejection sampling so every integer in [Min, Max] has an identical probability.
Can I generate random numbers that include zero (0) or negative numbers?
Yes. You can set Minimum Value to 0 (e.g., 0 to 99) or use negative bounds (e.g., -50 to -10 or -100 to 100) for both integer and decimal generation.
How do I generate unique lottery numbers without repeats?
Uncheck 'Allow Duplicate Numbers', set your range (for example, Min = 1 and Max = 49), set Quantity to 6, and set Sort Results to 'Ascending (Lowest to Highest)'. Every drawn integer is guaranteed to be distinct.
What happens if I disable duplicates and request more integers than exist in the range?
If you request 20 unique integers from a range of 1 to 10 (which only contains 10 integers), the generator returns a clear validation message explaining that the range only contains 10 unique integers.
How many decimal places can I generate?
When 'Generate Decimal Numbers' is enabled, you can choose between 1 and 10 decimal places of precision using 53-bit IEEE 754 floating-point cryptographic entropy.