TI-89 titanium RandInt ?

  • Calculators
  • Thread starter steezkraka
  • Start date
  • #1
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,572
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
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,572
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.
 

Related Threads on TI-89 titanium RandInt ?

  • Last Post
Replies
2
Views
26K
Replies
1
Views
3K
Replies
2
Views
5K
  • Last Post
Replies
1
Views
2K
Replies
7
Views
10K
  • Last Post
Replies
4
Views
18K
  • Last Post
2
Replies
34
Views
130K
Replies
10
Views
6K
Replies
1
Views
3K
  • Last Post
Replies
5
Views
7K
Top