TI-89 titanium RandInt ?

  • Calculators
  • Thread starter steezkraka
  • Start date
  • #1
steezkraka
2
0
TI-89 titanium "RandInt"?

for my class we did a quick programming of a coin toss, everyone else has TI-84s and I have the 89 titanium.

How do I go about entering the function "RandInt" onto the program editor?

Help is greatly appreciated!

P.S. anyone who knows where I could download a quick coin toss code sript? that would be great as well!
 

Answers and Replies

  • #2
Mech_Engineer
Science Advisor
Gold Member
2,586
172
for my class we did a quick programming of a coin toss, everyone else has TI-84s and I have the 89 titanium.

How do I go about entering the function "RandInt" onto the program editor?

Simple, if you looked in your manual you would see a function called "Rand([int])". So, to get a random number between 1 and 10 for example, just put Rand(10) in. For a random number between 1 and 54678 just put in Rand(54678). etc.
 
  • #3
steezkraka
2
0
Yes, but what if I wanted to find two numbers? such as RandInt (0,1) ? I'm not sure if I'm explaining this very well, but I'm just trying to write a program that would simulate a coin flip, with it being 50% chance Heads/Tails.
 
  • #4
Mech_Engineer
Science Advisor
Gold Member
2,586
172
Yes, but what if I wanted to find two numbers? such as RandInt (0,1) ? I'm not sure if I'm explaining this very well, but I'm just trying to write a program that would simulate a coin flip, with it being 50% chance Heads/Tails.

So just call Rand(2). It will give you a random interger between 1 and 2; I think you can see how many that is.
 

Suggested for: TI-89 titanium RandInt ?

  • Last Post
Replies
5
Views
414
  • Last Post
Replies
1
Views
944
  • Last Post
Replies
6
Views
4K
  • Last Post
Replies
10
Views
6K
  • Last Post
Replies
8
Views
15K
  • Last Post
Replies
10
Views
3K
Calculators TI-89 clear variables
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
1
Views
4K
  • Last Post
Replies
2
Views
6K
Top