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)
- Turn on your calculator and press the MATH key (located on the left side, below the arrow pad).
- Use the right arrow key to scroll to the PRB (probability) menu. You’ll see a list starting with
rand. - Press ENTER to select
rand. The calculator will pasterandonto the home screen. - Press ENTER again to execute. The calculator displays a random decimal number between 0 and 1, like
0.437821. - 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
- Press MATH, then scroll right to PRB.
- Scroll down to option 5: randInt( and press ENTER. The calculator will paste
randInt(onto the screen. - 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,6so the screen showsrandInt(1,6. - Close the parenthesis by pressing ) (the key above the 8). Your screen should read
randInt(1,6). - Press ENTER. The calculator displays a random integer between 1 and 6, such as
4. - Press ENTER again to generate another random integer in the same range.
Method 3: Generate a Random Number from a Normal Distribution (Advanced)
- Press 2ND then VARS (to access the DISTR menu).
- Scroll down to option 6: randNorm( and press ENTER.
- Enter the mean, comma, and standard deviation. For example, for a mean of 100 and standard deviation of 15, type
100,15. - 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(orrandNorm(—the calculator will throw a syntax error if you don’t close it. - Using the wrong menu—
randis 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—randgives decimals only; userandIntfor 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
randfunction 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 likeSCI, 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
randIntinstead ofrand. If you usedrand, 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
- How to Add a Horizontal Average Line in Excel
- Random 8 Digit Number: How to Generate One
- US Data Entry Process: How It Works Step by Step
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Where Is the Flash Fill Button in Excel? Find It FastIn Excel for Microsoft 365 on Windows, Flash Fill is on the Data tab, in the Data Tools…
- Excel Spreadsheet for Contact Information: How to Build OneYes, you can use an Excel spreadsheet to store contact information, and it works well for personal address…
- Excel Shortcut to Resize Cells to Fit Text and DataIn Excel for Microsoft 365 on Windows, select the columns you want to fit and press Alt, H,…
- How to Create a Signature in OutlookTo create a signature in Outlook, open signature settings, write and format your sign-off, then choose whether Outlook…
- Free Cash Flow Template for Excel: Setup and UseYes—you can make a free cash flow template in Excel by setting up monthly columns for opening cash,…
- Excel Accounting Format: Make Negative Values Display in RedTo show negative amounts in red in Excel for Microsoft 365 on Windows, select the cells, press Ctrl+1,…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.