Press Ctrl + D to bookmark Random Number Generator.
Open your browser menu (⋮ or the share icon) and tap Bookmark or Add to Home Screen.
Feedback on Random Number Generator
Random Number Between 1 and 40
Press Generate for a random whole number from 1 to 40, each equally likely. Change “How many” to draw several at once, with or without repeats.
Showing the first 2,000. Copy to get them all.
Press Generate, or press Enter.
Recent draws
Random number between 1 and…
Need a quick decision instead? Flip a coin, roll dice or spin the wheel.
About the Random Number Generator
Pick random numbers between any minimum and maximum. Draw one number or up to 10,000 at once, choose whether numbers may repeat, sort the results, or add up to six decimal places. The lottery mode draws quick-pick lines for common lottery formats. Numbers come from your browser’s secure random number generator with no bias, and nothing is sent to our server.
How to use it
- 1 Enter the lowest and highest number.
- 2 Choose how many numbers you want and whether they may repeat.
- 3 Press Generate, or press Enter.
- 4 Copy the numbers, or generate again.
Frequently asked questions
What are the odds of each number from 1 to 40?
Each whole number from 1 to 40 has a 1 in 40 chance (2.5%) on every draw. Earlier results make no difference to the next one.
How do I pick several numbers between 1 and 40 without repeats?
Set “How many” to the amount you need and keep “No repeats” ticked. Each number can then come up only once, as if drawn from a hat.
Is this random number generator truly random?
It uses crypto.getRandomValues, a cryptographically secure generator built into your browser, with rejection sampling so no number is more likely than another. That is as random as you need for games, draws and sampling.
How do I pick numbers without repeats?
Keep “No repeats” ticked. The numbers are then drawn like balls from a bag, so each can come up only once. You can draw up to the size of the range.
Can it pick decimal numbers?
Yes. Set the decimal places from 1 to 6. With 2 decimal places, a range of 0 to 1 can give 0.00, 0.01 and so on up to 1.00, each equally likely.
Can I use it for a raffle or giveaway?
Yes. Number the entries from 1 to the total, then generate as many winners as you need with no repeats. Record your screen if you want to show the draw.
Are my numbers saved?
Your last 10 draws are kept in your browser only, so you can look back at them. Nothing is sent to our server.
Related tools
Coin Flip
Flip a coin for heads or tails, play best of 3, or flip thousands of coins at once
Dice Roller
Roll d4 to d100 dice online, add modifiers, or type D&D dice notation
Spin the Wheel
Random name picker, yes or no wheel, and team generator
Random String Generator
Generate random strings
UUID Generator
Generate UUIDs, ULIDs
QR Code Generator
Generate QR codes