Generate 80 Random Numbers: How-To & Tools

How-to basics · Updated November 26, 2026

Yes, you can generate 80 random numbers in seconds using a spreadsheet formula, a free online generator, or a programming language. The exact method depends on the range and type of numbers you need (integers, decimals, unique, etc.), and this article covers the most practical approaches with step-by-step instructions.

Why You Might Need 80 Random Numbers

Generating 80 random numbers isn’t just a classroom exercise—it’s a common task in statistics, data analysis, gaming, and simulation. For example, you might need to:

  • Create a sample of 80 participants for a survey or A/B test.
  • Assign random IDs to 80 items or rows in a database.
  • Simulate 80 dice rolls, coin flips, or other random events for a probability experiment.
  • Generate a list of 80 random dates or times for scheduling tests.
  • Create a random permutation of 80 numbers for a shuffle or lottery-like draw.

Whatever your reason, the tools below will get you there quickly and accurately.

Method 1: Using Microsoft Excel (or Google Sheets)

If you already have a spreadsheet open, this is the fastest way. In Excel for Microsoft 365 (Windows or Mac) and Google Sheets, the core functions are the same.

For 80 random integers between 1 and 100 (inclusive):

  1. Select cells A1:A80 (or any 80 cells in a column).
  2. Type the formula: =RANDBETWEEN(1,100)
  3. Press Ctrl+Enter (Windows) or Cmd+Enter (Mac) to fill all selected cells at once.

This gives you 80 whole numbers, each between 1 and 100, with repeats possible. If you need decimals, use =RAND() instead—it returns a random decimal between 0 and 1. To get decimals in a specific range, use =RAND()*(max-min)+min. For example, =RAND()*90+10 gives decimals between 10 and 100.

To avoid repeats (unique numbers): Use the RANDARRAY function (available in Excel 2021 and Microsoft 365, and in Google Sheets). For 80 unique integers from 1 to 100, enter in A1: =SORT(TAKE(UNIQUE(RANDARRAY(1000,1,1,100,TRUE)),80))—this generates 1000 random integers, keeps only unique ones, takes the first 80, and sorts them. (Note: In Google Sheets, use =SORT(UNIQUE(RANDARRAY(1000,1,1,100,TRUE))) and then drag to see the first 80.)

Remember that RAND() and RANDBETWEEN() recalculate every time the sheet changes. To freeze the numbers, copy the cells and paste as values (right-click > Paste Special > Values).

Method 2: Using an Online Random Number Generator

If you don’t want to open a spreadsheet, a dedicated website is the simplest. Search for “random number generator” and you’ll find many free tools. The most popular is Random.org, which uses atmospheric noise for true randomness (as opposed to the pseudo-random algorithms in software).

On Random.org or similar:

  1. Set the minimum and maximum values (e.g., 1 to 100).
  2. Set the count to 80.
  3. Choose whether to allow duplicates (usually yes) or require unique numbers.
  4. Click “Generate” and copy the list.

These sites also let you sort, format as a column, or download as text. They’re perfect for one-off tasks, but be cautious: for sensitive applications like cryptographic keys or lottery draws, use a trusted source like Random.org or a hardware random number generator.

Method 3: Using Python (or Other Programming Languages)

If you’re comfortable with code, Python’s random module is powerful. Here’s a simple script that prints 80 random integers between 1 and 100:

import random

random_numbers = [random.randint(1, 100) for _ in range(80)]
print(random_numbers)

For unique numbers, use random.sample(range(1, 101), 80)—this picks 80 distinct numbers from 1 to 100. For decimals, use random.uniform(1, 100).

In R, you’d use sample(1:100, 80, replace=TRUE) for integers with repeats, or sample(1:100, 80, replace=FALSE) for unique. In JavaScript, Array.from({length:80}, () => Math.floor(Math.random()*100)+1).

How to Choose the Right Range and Type

Before generating, decide:

  • Integers vs. decimals: For most practical uses (IDs, dice, sampling), integers are fine. For statistical simulations, you often need decimals.
  • Range: The minimum and maximum values. For example, if simulating a 6-sided die, use 1 to 6.
  • Repeats allowed? If you need 80 unique numbers, the range must have at least 80 possible values (e.g., 1–100 is fine, but 1–50 is not).
  • Distribution: Uniform random numbers (each value equally likely) are the default. If you need a normal distribution, use specialized functions like NORM.INV(RAND(), mean, sd) in Excel.

Common Pitfalls and How to Avoid Them

Here are the mistakes people often make when generating 80 random numbers:

  • Forgetting to freeze values: In Excel, RAND() recalculates on every edit, so your list changes. Copy and paste as values to lock them.
  • Using a range too small for unique numbers: If you ask for 80 unique numbers from 1–50, you’ll get an error or duplicates. Ensure the range has at least 80 integers.
  • Not checking for duplicates when they matter: If you need unique IDs, verify with a quick formula like =COUNTIF(A1:A80,A1) to see if any repeat.
  • Using a pseudo-random generator for security: Excel’s RAND is fine for everyday tasks, but not for cryptographic purposes. Use a dedicated secure generator.

Comparing True Random vs. Pseudo-Random

Most software (Excel, Python, JavaScript) uses a pseudo-random number generator (PRNG) based on a starting “seed.” These sequences look random but are deterministic—if you know the seed, you can reproduce them. That’s fine for simulations and games, but not for security.

True random numbers come from physical processes like atmospheric noise (Random.org) or radioactive decay. They are unpredictable and used for cryptography, lotteries, and scientific experiments where bias is unacceptable. For most everyday needs, a PRNG is perfectly adequate.

Frequently Asked Questions

Can I generate 80 random numbers without repeats in Excel?
Yes, use the RANDARRAY function combined with UNIQUE and TAKE as shown above, or use the “Sampling” feature in Excel’s Data Analysis Toolpak (if enabled) which can sample without replacement. Alternatively, generate 80 numbers, then use the Remove Duplicates tool, but that may give you fewer than 80 if duplicates exist—so start with a larger range.

How do I generate 80 random numbers between 1 and 100 in Google Sheets?
Use the same =RANDBETWEEN(1,100) formula and fill down. For a single formula that spills, use =RANDARRAY(80,1,1,100,TRUE) which returns 80 rows of integers. For unique, use =SORT(UNIQUE(RANDARRAY(1000,1,1,100,TRUE))) and take the first 80 rows.

What is the difference between RAND() and RANDBETWEEN()?
RAND() returns a decimal between 0 and 1 (e.g., 0.4567). RANDBETWEEN(bottom, top) returns an integer between the two specified numbers, inclusive. To get decimals in a range, use RAND() with arithmetic.

Are the numbers from Excel truly random?
No, they are pseudo-random—they follow an algorithm. For most purposes (sampling, simulations) that’s fine. For security-sensitive applications, use a true random source like Random.org or a hardware RNG.

How can I make sure the numbers don’t change every time I open the spreadsheet?
After generating, copy the cells and use Paste Special > Values to replace the formulas with static numbers. Alternatively, set calculation to manual (Formulas > Calculation Options > Manual), but that’s less convenient.

Can I generate 80 random decimal numbers in a specific range?
Yes, in Excel use =RAND()*(max-min)+min. For example, for decimals between 5 and 10, use =RAND()*5+5. Fill down 80 rows. In Python, use random.uniform(5,10).

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.