HOME >> Tutorials >> Tutorial 5: Random Integers

Tutorial 5

Tutorial 5

Random Integers

New Commands

Name of term Description where to find command on calc.
randInt Picks a random number while making a program press 2nd 0 and press X and go down 3 spots

You may not know it but random integers are the basis of all programs.  In a this program I'll show you how it works and in next one to make it do some great things.

ClrHome
ClrDraw
Menu("PICK ONE","RANDOMINT",1,"QUIT",2
Lbl 1
randInt(1,100A
Disp A
Disp "THIS IS THE"
Disp "RANDOM INTEGER"
Lbl 2
ClrHome

Further Explaination

""                    these must always be used to have the calculator show text
,                     used in menus to divide up different selections
A                   Variable that the number is stored in

If you do not understand any part of this tutorial or have a question about programming E-mail us.





Problems with this page?
Contact the Webmaster.