The Random Number Generator produces one or many random integers or decimal numbers within any range you specify. Set the minimum and maximum values, choose how many numbers to generate, and optionally enable Unique mode to guarantee no repeats in the output — ideal for lottery picks and sampling without replacement.
Random numbers underpin a huge range of tasks that benefit from unbiased selection: statistical sampling, A/B test cohort assignment, simulation seeding, test data generation, lottery draws, dice rolls for board games, random question selection for quizzes, and generating placeholder numeric values for mockups.
Decimal mode lets you generate floating-point numbers with a configurable number of decimal places — useful for price lists, coordinates, probability values, and scientific test inputs. Unique mode prevents duplicates by sampling without replacement from the available range.
The generator uses JavaScript's Math.random() pseudo-random number generator (PRNG), which provides a statistically uniform distribution across all values in your range. For non-cryptographic use cases — simulations, sampling, test data — this is fully sufficient. For security-sensitive randomness (encryption keys, tokens), use the Password Generator or UUID Generator, which draw from the cryptographically secure Web Crypto API instead.
Everything runs entirely in your browser. Results are not stored, transmitted, or logged.
Set the minimum and maximum values for your range.
Choose how many numbers to generate.
Enable Unique mode to prevent duplicate values.
Click Generate and copy the results.
The Random Number Generator produces numeric values within a range you define — ideal for lottery picks, sampling, and test data where the actual numeric value matters. The UUID Generator instead produces long, effectively unique identifier strings, where only uniqueness matters, not the value itself.
Use the Random Number Generator when you need a number within specific bounds; use the UUID Generator when you need a guaranteed-unique identifier for a record, regardless of what it looks like.
Yes — enable Unique mode and the generator samples without replacement, guaranteeing no duplicates in the output. The count cannot exceed the total number of integers in the range (e.g. you cannot generate 15 unique numbers between 1 and 10).
Yes — switch to Decimal mode and specify the number of decimal places. The generator produces floating-point numbers uniformly distributed across your range, useful for price lists, coordinates, probability values, and scientific test data.
The generator handles up to 10,000 numbers in a single batch without performance issues. Results appear instantly and can be copied to clipboard or downloaded as a text file.
It uses JavaScript's Math.random() pseudo-random number generator (PRNG), which produces a statistically uniform distribution across your specified range. For simulations, sampling, test data, and games this is entirely sufficient. For cryptographic or security-sensitive purposes, use the Password Generator which draws from the cryptographically secure Web Crypto API.
Yes — set the range to match your lottery (e.g. 1–49), set the count to the number of picks (e.g. 6), enable Unique mode to prevent duplicates, and click Generate. Results are displayed and ready to copy.
The output shows numbers in standard format. For zero-padded numbers (e.g. 007 instead of 7), copy the results and use the Add Prefix/Suffix tool to apply consistent padding, or use a spreadsheet to reformat the column.
Yes — set the range to match your lottery, set the count to the number of picks needed, and enable Unique mode to guarantee no duplicate numbers.
Yes — set the range to match your respondent ID numbers, enable Unique mode, and set the count to your desired sample size for a simple random sample without replacement.
For most academic and business research purposes, yes — it provides a statistically uniform distribution. For studies requiring cryptographically verified or auditable randomness, consult your institution's specific requirements.