Calculators How do I use the RandInt function on my TI-89 titanium for a coin toss program?

  • Thread starter Thread starter steezkraka
  • Start date Start date
  • Tags Tags
    Ti-89 Titanium
AI Thread Summary
To program a coin toss on the TI-89 Titanium, users can utilize the function "Rand" instead of "RandInt." The "Rand" function generates a random number between 0 and a specified integer. For simulating a coin flip, entering "Rand(2)" will yield a random integer of either 1 or 2, effectively representing Heads or Tails with a 50% chance for each outcome. This method simplifies the process of generating random numbers for programming tasks on the TI-89 Titanium. Additionally, there is a request for downloadable coin toss code scripts, though no specific sources are provided in the discussion.
steezkraka
Messages
2
Reaction score
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!
 
Computer science news on Phys.org
steezkraka said:
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.
 
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.
 
steezkraka said:
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.
 
Thread 'Urgent: Physically repair - or bypass - power button on Asus laptop'
Asus Vivobook S14 flip. The power button is wrecked. Unable to turn it on AT ALL. We can get into how and why it got wrecked later, but suffice to say a kitchen knife was involved: These buttons do want to NOT come off, not like other lappies, where they can snap in and out. And they sure don't go back on. So, in the absence of a longer-term solution that might involve a replacement, is there any way I can activate the power button, like with a paperclip or wire or something? It looks...
I came across a video regarding the use of AI/ML to work through complex datasets to determine complicated protein structures. It is a promising and beneficial use of AI/ML. AlphaFold - The Most Useful Thing AI Has Ever Done https://www.ebi.ac.uk/training/online/courses/alphafold/an-introductory-guide-to-its-strengths-and-limitations/what-is-alphafold/ https://en.wikipedia.org/wiki/AlphaFold https://deepmind.google/about/ Edit/update: The AlphaFold article in Nature John Jumper...

Similar threads

Replies
5
Views
2K
Replies
1
Views
5K
Replies
2
Views
7K
Replies
1
Views
5K
Replies
1
Views
16K
Replies
5
Views
5K
Replies
1
Views
5K
Back
Top