Random Number Generator
Pick random numbers between any two values. Choose whole numbers or decimals, generate one or many, and avoid repeats when you need a fair draw.
Random number generator
How to Use
- Set the range. Type a minimum and maximum, or tap a preset such as dice or a coin flip. Both ends can be picked.
- Choose how many. Ask for up to 1,000 numbers at once.
- Pick whole numbers or decimals. Decimal places let you draw values such as 4.27.
- Turn on “No repeats” for raffles, seating order or picking winners, where each number can only come up once.
- Generate and copy. Use “Generate again” for a fresh draw and “Copy results” to paste the list elsewhere.
How It Works
Simple generators often take a random number and use the remainder after dividing by the range size. That quietly favours the smaller values. This tool avoids it: it draws 64 random bits from the browser’s cryptographic source and throws away any draw that falls in the uneven leftover at the top, so every value in your range has exactly the same chance.
Whole numbers between 1 and 6 each have a 1 in 6 chance. Decimals work the same way on a finer scale: 2 decimal places between 0 and 1 gives 101 equally likely values (0.00 to 1.00).
With “No repeats”, a number that has already been picked is removed from the pool. For small ranges the tool shuffles the whole list and takes the first few; for large ranges it redraws until it finds an unused number.
Frequently asked questions
- Is this random number generator truly random?
- It uses your browser’s cryptographic random source (crypto.getRandomValues), the same one used for security keys, and removes modulo bias so every number in your range is equally likely.
- Can I generate numbers without repeats?
- Yes. Turn on “No repeats” and each number appears at most once, like drawing numbered balls. The amount you ask for cannot be larger than the number of values in the range.
- Are the minimum and maximum included?
- Yes. Both ends of the range can be picked. A range of 1 to 6 can return 1, 2, 3, 4, 5 or 6.
- Can I use it for a giveaway or a lottery draw?
- It is fair for informal draws and games. For regulated lotteries or prizes, check the rules that apply where you live.