Casio FX-115ES Scientific Calculator Logo
Posted on Jul 16, 2010
Answered by a Fixya Expert

Trustworthy Expert Solutions

At Fixya.com, our trusted experts are meticulously vetted and possess extensive experience in their respective fields. Backed by a community of knowledgeable professionals, our platform ensures that the solutions provided are thoroughly researched and validated.

View Our Top Experts

How do I program the calculator to read random numbers 1-50?

1 Answer

k24674

Level 3:

An expert who has achieved level 3 by getting 1000 points

Superstar:

An expert that got 20 achievements.

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

  • Casio Master 8,093 Answers
  • Posted on Jul 23, 2010
k24674
Casio Master
Level 3:

An expert who has achieved level 3 by getting 1000 points

Superstar:

An expert that got 20 achievements.

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Joined: Aug 17, 2009
Answers
8093
Questions
0
Helped
4675425
Points
21596

The post answer the question concerning how to generate random integers. The example given is for rolling a dice. I am inserting the modification that treats your case at the end.

The random number generator function is called Ran# and can be accessed in RUN mode by pressing:
[OPTN] [F6] [F3] (PROB) [F4] to access the (Ran#) function
In the paragraph above, the bold text in square brackets indicates keypresses, while the text in parentheses represents the menus that appear at the bottom of the calculator screen. This also assumes there are no menus on the bottom of the screen when you begin. If PROB is already on the screen, then the [F6] key is not necessary, just press [F3] then [F4] at this point.

The Ran# function generates a random decimal number between 0 and 1. If you need to generate a number with a higher range, then there may be extra steps involved. For example, to choose a random number between 0 and 100, you would enter:
Ran#×100 or Ran#(100)

how do I program the calculator to read random - ec9c0df.jpg
Let's say you want to simulate a dice roll, where you get an integer between 1 and 6. Your first step would be to do:
Ran#×6
This will give you a random decimal number between 0 and 6. But we need an integer, not a decimal. To make it an integer, you would change this to:
Int(Ran#×6)

Press [OPTN] [F6] [F4] (NUM) [F2] to access the (Int)

This now gives you an integer between 0 and 5. We just need to add 1 to the result.
Int(Ran#×6)+1
The result should be an integer between 1 and 6.

To generate random number between 1 and 50
Int(Ran#×50)+1

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

0helpful
1answer

How do I use the random number generator to generate numbers between 1-100 or 1-10

The random number generator generates a number between 0 and one. To get a random number between 1 and 100, multiply the generated number by 100, add 1, and discard the fractional portion. To generate a random number between 1 and 10, multiply the generated number by 10, add 1, and discard the fractional portion.
0helpful
1answer

How do I generate a random number that is greater than 1 on a casio fx-300MS

The random number function always generates a number between zero and one. You can convert this to a random number in any range by a suitable combination of multiplications and additions. For example, if you want a random number between zero and ten, multiply the generated random number by 10. If you want a random number between one and ten, multiply the generated random number by 9 and then add 1.

If you want to simulate the roll of a six-sided die, multiply the generated random number by 6, add 1, and ignore the fractional portion. This will give you a 1, 2, 3, 4, 5, or 6 with more-or-less equal probability.
0helpful
1answer

Where is the probability button?

The EL-535 can generate random numbers for you. Press 2nd Function, 7. You will see random written above 7 in orange. This will give you four choices for random numbers. 0:RAND - random decimals to 3 decimal places 1:R-DICE -1 to 6 like a standard dice, 2:R-COIN - 0 or 1 and you decide which is heads or tails.3:R-INT for integers up to 99
1helpful
1answer

Ran#

A random number generator exists on this calculator. It is accessible in RUN or PGRM modes by pressing the OPTN key. If you don not see a tab PROB at the bottom of screen, press the rightmost key to move to next page.

Anyway, RAND# generates a real number between 0 and 1.

For other numbers read on.

The Ran# function generates a random decimal number between 0 and 1. If you need to generate a number with a higher range, then there may be extra steps involved. For example, to choose a random number between 0 and 100, you would enter:
Ran#×100 or Ran#(100)

ec9c0df.jpg
Let's say you want to simulate a dice roll, where you get an integer between 1 and 6. Your first step would be to do:
Ran#×6
This will give you a random decimal number between 0 and 6. But we need an integer, not a decimal. To make it an integer, you would change this to:
Int(Ran#×6)

[OPTN].......(NUM) [F2] to access the (Int)

This now gives you an integer between 0 and 5. We just need to add 1 to the result.
Int(Ran#×6)+1
The result should be an integer between 1 and 6.

04419d1.jpg
1helpful
1answer

Is it possible to use the random number function to simulate a dice - so the calculator gives numbers between 1 and 6.

Hello,
The random number function Rand# generates numbers between 0 and 1. The calculator is not programmable, so I do not see an easy way to make it simulate the throw of a dice.
However if you use Rand#(6) it generates numbers between 0 and 6. You will have to devise a way to discard values less than 1 and introduce the value 6. Maybe if you get a number less than 1 you set it to 6.

It is up to you.

Hope it helps.
0helpful
1answer

Generating random numbers

Hello,
Turn calculator ON, press MENU if you see no icons. Use arrow key to highlight the RUN application. Press OPTN, press F6 to pan right. Press F3: Prob, then F4:Ran# then EXE to execute.

Each time you press EXE a new random number is generated. You might want to fix the number of decimal digits to less than the 10 digits displayed by default.

By default number generated are between 0 and 1. If you want numbers between 0 and 100 you enter Ran#(100).

Hope it helps.
0helpful
1answer

I can't see anything on my screen. Its all random numbers and stray marks

Hello,
Press [2nd][QUIT] to interrupt any program stuck in memeory. Press [CLEAR] button to clear the screen.
Try adjusting the screen contrast.
Hope it helps.
0helpful
1answer

Generate a random number

Press the math key. Arrow over to PRB (probability) Select #5 randInt. You will now be at the home screen. From here you have to let the calculators the set of numbers you want to use. For example if you want to use the numbers 1 thru 50 type in 1,50. You must separate the numbers with a comma. Then press enter as many time as you want to generate a random number. It is not necessary.to end the parentheses.
0helpful
1answer

How do I get the Ti 85 to do random integers?

Functions on the calculator are bold. Numbers you choose are in italics.

For random positive integers between 0 and n use the following:

int (rand * n) + 1


int is on [Math] [Num] F4

and rand is on [Math] [Prob] F4

rand returns a random number x between 0 and 1 such that 0 < x < 1.

int returns the integer portion of a number such that int 123.456 returns 123 and int -123.456 returns -124.
0helpful
2answers

Statistics

Random number generators on computers are not really random. They need to be "seeded". If you seed the random number generator with the same seed each time you will generate the same list of numbers. A common technique in computer programming is to seed the random number generator with a value like the number of seconds that has occurred since midnight. This gives you the illusion of real random numbers.

Look up the word "Seed" in your calculator documentation and it will most likely tell you how this is accomplished on the TI calculators.
Not finding what you are looking for?

502 views

Ask a Question

Usually answered in minutes!

Top Casio Office Equipment & Supplies Experts

k24674

Level 3 Expert

8093 Answers

Arnie Burke
Arnie Burke

Level 3 Expert

7339 Answers

Ngoro

Level 3 Expert

3523 Answers

Are you a Casio Office Equipment and Supply Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...