Skip to main content

Calcu.fit

Random Number Generator: Pick Random Numbers in Any Range

Use this free random number generator to pick one or many random numbers between any two values. Enter a minimum and a maximum, choose how many numbers you want, and click generate. You can choose whole numbers or decimals, allow or block repeats, and sort the results. It also includes a dice roller and a coin flip. No signup needed.

How to Use This Random Number Generator

  1. Enter the minimum and maximum numbers. Both are included in the range.
  2. Enter how many numbers you want.
  3. Choose whole numbers (integers) or decimals, and the number of decimal places.
  4. Choose whether numbers can repeat. Turn repeats off to get unique numbers, like drawing from a hat.
  5. Choose whether to sort the results.
  6. Click Generate. Click again for a new set.

For dice, choose the number of dice and the number of sides. For a coin flip, choose the number of flips.

What You’ll See in Your Results

  • Your random numbers, in the order they were drawn or sorted
  • The sum, the average, the smallest, and the largest of the list
  • A copy button for the list
  • A history of recent results, if your tool offers it

What Is a Random Number?

A random number is a number chosen so that you cannot predict it, and where each allowed number is equally likely. In a range from 1 to 100, every whole number has a 1 in 100 chance, or 1%, each time. Random numbers are used for games, giveaways, choosing people for a task, picking samples for research, and making fair decisions.

How Does a Random Number Generator Work?

There are two main kinds:

  • Pseudorandom number generators (PRNGs) use a math formula that starts from a “seed” value. The numbers look random and pass many tests, but they come from a formula. Most websites and apps, including most calculators and programming languages, use these. They are good for games, drawings, and everyday choices.
  • True random number generators use physical sources of unpredictability, such as electronic noise or atmospheric noise. They are used when unpredictability is very important.

Modern web browsers also provide a stronger, cryptographically secure source of random values that is suitable for more demanding uses. Our calculator [uses a standard browser random function / uses the browser’s secure random source — update to match your tool].

The Math Behind Picking a Random Number

Random whole number between min and max (inclusive):
Number = min + floor(random × (max − min + 1)), where “random” is a value from 0 up to (but not including) 1

Random decimal between min and max:
Number = min + random × (max − min)

Number of values in a range = max − min + 1

Chance of a specific number = 1 ÷ (number of values in the range)

Average of a range of whole numbers = (min + max) ÷ 2

Number of ways to choose k from n (order does not matter) = n! ÷ (k! × (n − k)!)

Random Number Examples

Example 1: A Number Between 1 and 100

  • The range has 100 − 1 + 1 = 100 possible numbers.
  • The chance of any specific number is 1 ÷ 100 = 1%.
  • The average of many draws will be close to (1 + 100) ÷ 2 = 50.5.

Example 2: Repeats Can Happen

You pick 5 random numbers from 1 to 10, and repeats are allowed.

  • The chance that all 5 are different: (10 × 9 × 8 × 7 × 6) ÷ 10⁵ = 30.24%
  • The chance that at least one number repeats: 69.76%

Seeing a repeat does not mean the generator is broken. If you do not want repeats, turn them off.

Example 3: Unique Numbers (No Repeats)

You draw 5 unique numbers from 1 to 50.

  • Number of different groups of 5 (order ignored): 50! ÷ (5! × 45!) = 2,118,760
  • Number of different ordered lists: 50 × 49 × 48 × 47 × 46 = 254,251,200

Example 4: Lottery-Style Draw

You pick 6 unique numbers from 1 to 49.

  • Number of possible combinations: 13,983,816
  • The chance that one particular ticket matches all 6: 1 in 13,983,816

A random generator does not improve your odds in a lottery. Every combination is equally likely, including 1-2-3-4-5-6. Play responsibly, if you play.

Example 5: Rolling Dice

  • One die has 6 sides, so each number has a 16.67% chance.
  • Two dice: the chance of a total of 7 is 6 ÷ 36 = 16.67%, the most likely total.
  • Three dice: the chance of a total of 10 is 27 ÷ 216 = 12.5%.
  • The chance of at least one 6 in 4 rolls of one die: 1 − (5/6)⁴ = 51.77%

Example 6: Flipping a Coin

  • Each flip is heads or tails, with a 50% chance each.
  • The chance of 10 heads in a row: (1/2)¹⁰ = 1 ÷ 1,024 = 0.098%

After a run of heads, the next flip is still 50/50. Past results do not change the odds.

Example 7: Choosing a Winner

You have 20 entries in a giveaway and pick 1 winner by choosing a random number from 1 to 20.

  • Each entry has a 5% chance (1 in 20).
  • Number the entries in a fixed list before you draw, so the process is fair and easy to check.

Example 8: Birthdays in a Group

In a group of 23 people, the chance that at least two share a birthday is about 50.7%. This is the “birthday problem,” and it shows that coincidences are more common than most people expect.

Example 9: A 4-Digit Code

A 4-digit code from 0000 to 9999 has 10,000 possible values.

  • The chance of guessing a particular code at random: 1 in 10,000, or 0.01%

What Is a Random Number Generator Used For?

  • Games and activities: dice, card draws, and board games.
  • Choosing people: picking a winner, a volunteer, or the order of speakers.
  • Teaching and research: random samples, assigning groups, and simulations.
  • Decisions: settling a choice when options are equal.
  • Testing and software: test data and sample values.
  • Creative uses: story prompts, names, and writing exercises.

When Not to Use It

  • Gambling and money: do not use a free online generator for regulated draws, lotteries, or games of chance with real money. Follow your local laws and use an approved process.
  • Security: do not use a general online tool to create passwords, encryption keys, or security codes. Use a password manager or a cryptographically secure tool built for this.
  • Official drawings and legal contests: rules differ by place. Check local requirements for fairness, records, and independent supervision.
  • Medical or safety decisions: random numbers should not decide important health or safety choices.

How to Run a Fair Drawing

  1. List all entries in a fixed order and give each a number.
  2. Decide the rules before you draw, such as how many winners and what happens to a repeated number.
  3. Turn repeats off if each entry can win only once.
  4. Draw in front of others, or record your screen, to be transparent.
  5. Keep a record of the entries, the range, and the result.

Common Questions About Randomness

  • “Random” does not mean “evenly spread.” Streaks, clusters, and repeats happen in real random results. A short list of random numbers often looks less random than people expect.
  • The gambler’s fallacy: thinking a number is “due” after not appearing. Each draw is independent, so past results do not change the next one.
  • Pseudorandom is good enough for most uses. For everyday picks, the difference from true randomness is not noticeable.

Tips for Using a Random Number Generator

  • Check the minimum and maximum. Both numbers are included.
  • Turn off repeats when you need unique numbers, and make sure your range has at least as many numbers as you want.
  • Use decimals for measurements or simulations, and set the decimal places you need.
  • Sort the results when you want an ordered list.
  • Generate again for a fresh set. Previous results do not affect the next ones.
  • For fairness, write down the rules before you draw.

Random Number Generator vs. Other Tools

  • Dice Roller: roll one or more dice with any number of sides.
  • Coin Flip: heads or tails.
  • Scientific Calculator: general math and functions.
  • Probability Calculator: the chance of events.
  • Number Sequence Calculator: patterns in a list of numbers.
  • Percentage Calculator: percent change and basic percentage math.

Frequently Asked Questions (FAQ)

How does a random number generator work?

Most use a math formula that produces numbers that look random (pseudorandom numbers). Some use physical sources of unpredictability, such as electronic noise, for true randomness.

 It is pseudorandom, which is suitable for games, drawings, and everyday choices. It is not designed for gambling, security keys, or other uses that need cryptographic strength. [Update this answer to match the method your tool uses.]

 Pseudorandom numbers come from a formula and a starting seed. True random numbers come from physical processes. For most everyday uses, the difference does not matter.

Enter 1 as the minimum and 100 as the maximum, and click Generate. Each whole number has a 1% chance.

Turn off the “allow repeats” option. Then each number can appear only once, and your range must contain at least as many numbers as you ask for.

When repeats are allowed, duplicates are normal. Picking 5 numbers from 1 to 10 gives at least one repeat about 70% of the time.

It can pick a set of numbers, but it does not improve your odds. Every combination is equally likely.

For informal giveaways, yes. Number the entries in a fixed list, draw one number, and keep a record. For regulated or high-value contests, follow your local rules.

No. Use a password manager or a tool built to create secure passwords.

1 divided by the number of values in the range. In 1 to 100, it is 1 in 100, or 1%.

Both the minimum and the maximum can be picked. A range of 1 to 10 includes 1 and 10.

Yes. It is free, with no registration and no limits.

Disclaimer

This random number generator is for general entertainment and everyday use. It is not suitable for gambling, regulated drawings, security keys, or other uses that require certified or cryptographically secure randomness. Follow your local laws and rules for contests and drawings.