Keyboard shortcut: Space bar

Click Generate or press Space
What this tool is best for:

Best for: Picking a winner from a numbered list, generating test values within a set range, and producing sample IDs

Limitations: Picks numbers only; it cannot hold a list of names, and it caps at 20 numbers per draw

Best suited for: Teachers running classroom draws and developers generating quick test values

How to Use

1
Set your range. Enter a minimum and maximum value. Default is 1 to 100.
2
Choose how many numbers. Set count to 1 for a single result, or up to 20 for a list. Enable "No repeats" to get unique numbers.
3
Generate and copy. Click Generate or press Space. Use the Copy button or click the quick-use chips for common scenarios like lottery numbers.

Frequently Asked Questions

Is this truly random?

It uses the browser's Web Crypto API, crypto.getRandomValues(), which is a cryptographically secure random number generator seeded from your device's entropy sources. That is not the same as physical randomness such as atmospheric noise, but its output cannot be predicted from earlier results, which is what a fair prize draw or classroom pick needs. Every number in your range is equally likely.

How do I generate a random number in a range?

Set min and max to your desired boundaries and click Generate. Both ends are included. The tool takes a random 32-bit value from crypto.getRandomValues(), discards it if it falls in the small leftover zone that would bias the result, and otherwise maps it onto your range, so every number, including both endpoints, is equally likely.

Can I generate lottery numbers?

Yes. Click the "Lottery (1-49, pick 6)" quick chip to auto-fill the settings, then click Generate. The no-repeats option ensures all 6 numbers are unique. Adjust the range for your local lottery format.

What is the difference between random and pseudorandom?

True random numbers come from physical processes like atmospheric noise. Pseudorandom numbers use mathematical algorithms starting from a seed value. Both produce statistically uniform distributions. For everyday use, pseudorandom is perfectly adequate.

How do I pick a random number between 1 and 10?

Set min to 1, max to 10, count to 1, and click Generate or press Space. Each number from 1 to 10 has an equal 10% probability of being selected.

About This Generator

This generator draws its numbers from your browser's cryptographic random number API, crypto.getRandomValues(), the same source the site's password generator uses. It maps that output onto your range with rejection sampling, so every number in the range is exactly equally likely. Each draw is independent: past results do not influence future ones, and nothing is sent to a server.

Common Uses

Random number generators are used for statistical sampling, classroom activities like choosing who presents first, prize draws and lotteries, game development, scientific simulations, and A/B testing to assign users to control or treatment groups.

Choosing a Range and Mode

Set the minimum and maximum to match your list inclusively, so 250 entries means 1 to 250. Use the unique option when drawing several winners, otherwise the same number can appear twice. For anything security related, such as a password or token, use a purpose built generator rather than this one, since unpredictability to an attacker is a different requirement from fairness in a draw.

Get fresh reads straight to your inbox

Get notified when we publish new articles. Unsubscribe anytime.