How to Generate a Random Number on a TI-84

How-to basics · Updated November 24, 2026

Need a random number for a probability experiment, a game, or just to settle a debate? The TI-84 graphing calculator has a built-in rand function that generates a random decimal between 0 and 1. You can also generate random integers within a specific range using randInt. This guide shows you both methods, step by step.

What You’ll Need

  • A TI-84, TI-84 Plus, TI-84 Plus CE, or any TI-84 family calculator.
  • The calculator turned on (press the ON key).
  • No special apps or programs required—everything is built into the calculator’s operating system.

Step-by-Step

Method 1: Generate a Random Decimal (0 to 1)

  1. Turn on your calculator and press the MATH key (located on the left side, below the arrow pad).
  2. Use the right arrow key to scroll to the PRB (probability) menu. You’ll see a list starting with rand.
  3. Press ENTER to select rand. The calculator will paste rand onto the home screen.
  4. Press ENTER again to execute. The calculator displays a random decimal number between 0 and 1, like 0.437821.
  5. To get another random number, simply press ENTER again. Each press gives a new random decimal.

Method 2: Generate a Random Integer Within a Range

  1. Press MATH, then scroll right to PRB.
  2. Scroll down to option 5: randInt( and press ENTER. The calculator will paste randInt( onto the screen.
  3. Type the lower bound (the smallest number you want), a comma, then the upper bound (the largest number). For example, to get a random integer from 1 to 6 (like a die roll), type 1,6 so the screen shows randInt(1,6.
  4. Close the parenthesis by pressing ) (the key above the 8). Your screen should read randInt(1,6).
  5. Press ENTER. The calculator displays a random integer between 1 and 6, such as 4.
  6. Press ENTER again to generate another random integer in the same range.

Method 3: Generate a Random Number from a Normal Distribution (Advanced)

  1. Press 2ND then VARS (to access the DISTR menu).
  2. Scroll down to option 6: randNorm( and press ENTER.
  3. Enter the mean, comma, and standard deviation. For example, for a mean of 100 and standard deviation of 15, type 100,15.
  4. Close the parenthesis and press ENTER. The calculator returns a random number from a normal distribution with those parameters.

Common Mistakes

  • Forgetting the closing parenthesis in randInt( or randNorm(—the calculator will throw a syntax error if you don’t close it.
  • Using the wrong menu—rand is in the MATH > PRB menu, not the DISTR menu (that’s for probability distributions).
  • Typing the range backwards—if you type randInt(6,1), the calculator will still work but may give you an error or unexpected results. Always put the smaller number first.
  • Expecting integers from rand—rand gives decimals only; use randInt for whole numbers.
  • Not clearing previous entries—if you see a syntax error, press CLEAR to wipe the line and start fresh.

Tips

  • Seed the random generator for reproducible results: press STO> then MATH > PRB > 1:rand after typing a number (e.g., 123 STO> rand). This is useful for classrooms or when you want to recreate a sequence.
  • Generate multiple numbers at once by adding a third argument to randInt: randInt(1,6,5) gives a list of 5 random integers. Press ENTER to see them in list braces.
  • Use the rand function in programs—it’s a command in TI-BASIC, so you can use it in your own programs for games or simulations.
  • Check the calculator’s mode—if you’re in Radian mode or Degree mode, it doesn’t affect rand; but if you’re in a weird mode like SCI, numbers may display in scientific notation. Press MODE and select NORMAL for standard display.

Troubleshooting

  • Syntax error when pressing ENTER: You likely missed a parenthesis or typed a comma incorrectly. Press CLEAR and retype the command carefully.
  • Random number is always the same: The calculator may be using the same seed. Set a new seed by typing a number, then STO> MATH > PRB > 1:rand, then ENTER.
  • Calculator shows randInt( but doesn’t execute: Make sure you closed the parenthesis and pressed ENTER. If you see the cursor still on the line, you haven’t pressed ENTER yet.
  • Getting a decimal when you wanted an integer: Use randInt instead of rand. If you used rand, multiply by the range and round, but that’s more complex.
  • List of random numbers appears as {...}: That’s normal when you use the third argument. To see each number individually, use the list or press STO> to store it to a list variable.

Frequently Asked Questions

Can I generate a random number between 0 and 100?

Yes. Use randInt(0,100) for integers, or rand*100 for decimals (the result will be between 0 and 100, but not including 100 exactly).

How do I get a random number with two decimal places?

Use rand and then round: press MATH > NUM > 2:round(, then type rand,2). This rounds the random decimal to two places.

What does randInt(1,6,5) do?

It generates a list of 5 random integers between 1 and 6. The result will appear as a list like {3 6 1 4 2}.

Can I use random numbers in a program?

Yes. In a TI-BASIC program, just type rand or randInt( as a command. For example, :randInt(1,10)→A stores a random integer from 1 to 10 into variable A.

Why does my calculator give the same random numbers every time I reset it?

The TI-84 uses a seed value that resets to a default after a RAM clear. To get different numbers, set a new seed as described in the Tips section.

Is there a way to generate a random number without using the MATH menu?

Yes, you can type rand directly from the keyboard: press ALPHA then MATH (which types r), but it’s faster to use the menu. Alternatively, use the shortcut: press 2ND then 0 (CATALOG) and scroll to rand.

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.