Random Number Generator
How to Generate Random Numberson the TI-84 Plus
In This Article
By Jeff McCalla, C. C. Edwards
This TI-84 Plus calculator has a vast number of numbers arranged in a table, referred to as a random table that it uses for its calculations to generate random numbers.
Generating random integers
For you to generate random integer,follow these steps:
-
To start the randInt Wizard within the Math PROB menu, select If you are using a TI-84 Plus, there isn't a wizard for the randint command. To run the command it is necessary to understand the format: randint(lower higher, upper elements]).A wizard can make entering data simple. The wizard arranges the information you input so that it fits the syntax of the command. See the wizard in one of the screens.
- Select the lower limit, and the maximum limit you wish the number that you randomly choose be.You need a random number that ranges from 1 to 100. Enter [ENTER] or press the down-arrow to move to the next line in the wizard.
- Enter n to indicate how many random numbers do you wish to generate.Press [ENTER] several times to generate more random numbers . This is shown in the second screen.
- If you would like to generatea list of random integers change values of n.See the third screen in.
Generating random integerswith no repetition
Did you notice the integer, 52, was selected twice during the second screen? If you are generating the list of random integers and want to eliminate repeats with a different method. Here are the steps:
-
To activate the randIntNoRep Wizard by using the Math PROB menu, click
See to open the next screen.On the TI-84 Plus, the randIntNoRep command does not include wizards to aid you. The syntax for the command is randIntNoRep(lower,upper). Contrary to TI-84 Plus C it doesn't provide an option to adjust the number of terms.
- Input either the upper or lower limits and n (the the number terms).See this second page.
- Enter [ENTER] until the numbers are generated.This can be seen in the screen 3.
Generating random decimals
It is very easy to generate random decimal numbers which are between 0 and 1. Press
to select to select the rund command from the Math Probability menu. Repeatly press [ENTER] to generate random numbers. The first screen illustrates this process.
When you need to generate random numbers between 0 and 100, run the command rand in an expressionlike 100*rand. The second screen.
Seeding the random number generator
Your calculator generates random numbers from a massive list of digits that are arranged into an order. Here's the best part. You are able to choose which part of the list you want your calculator to begin generating random numbers. It is called"seeding" the number.
Get a little creative with the numbers you choose to begin your calculator. This should be enjoyable! Figure out how many days you have been alive. Your calculator has a command to figure it out for you! Use these tips:
- Use [2nd][0] to access the Catalog.Notice your calculator is operating in Alpha mode, indicated by the blinking red A within the cursor.
-
To add the DBD( function for inserting the function, press
dbd refers to days between dates.
- Fill in your birth date as an integer in this type of form. MM.DDYY.Dates need to occur between 1950 and 2049. In this case, June 1, 1968 is entered using the number: 06.0168.
- Press [,].
- Fill in today's day's number using this form: MM.DDYY. January 2 2012 is entered using the number 01.0213.
-
Enter [ENTER] to find out how many days you've had alive.See the initial screen. Wow! 16,286 days sounds old!
Below are some steps to make sure you are seeding your calculator correctly:
- Enter the number you're making use of to create your seed for your calculator. 16286. However, in reality, you could use any real number to seed your calculator.
-
Press
-
To insert the rand command, press
- Press [ENTER] to start seeding the calculator.See that first row in the second screen.
- Test it! Try randInt( to generate an random number.See the last line in this second screen.
Are you looking to impress your peers? Seed your calculator with the results that you are aware of in advance. If, for instance, you intentionally seed your calculator using the number 16286 and the following 3 random numbers (from 1,000 to 0) that are created will include 203 213, and 197 as seen in the third screen. Be careful not to divulge your secrets!
About the Book Author
Jeff McCalla is an instructor of mathematics in St. Mary's Episcopal School in Memphis, TN. He was the co-founder of the TI-Nspire SuperUser group, and was awarded the Presidential Award for Excellence in Science & Mathematics Teaching. C.C. Edwards is an educationalist who has given numerous workshops on using TI calculators.
Comments
Post a Comment