Casio fx-7400G manual Twodice

Page 23

Barry Kissane

TWODICE

Purpose

To simulate rolling two standard six-sided die, for which each of the six possible scores are equally likely on each die. The two die rolls are added each time to produce a score.

Operation

Enter the number of rolls required. (The maximum is 255.)

The program will display the mean score of the simulated dice rolls.

The actual totals are stored in List 1. Any data already in List 1 will be lost.

Press Menu 2 to see the data, and to analyse them if you wish. You may like to use program FREQDIST in order to convert the data into a frequency distribution.

Each time the program is run, a different set of dice rolls is generated.

To simulate dice with different numbers of sides, edit the fourth line of the program. For example, if you change the first six to a ten, the program will simulate rolling a ten- sided die followed by a six-sided die and then adding the scores. In each case, all sides of dice are equally likely. Here is the relevant line after editing:

15

Image 23
Contents Programming Your Calculator Programming Your Calculator Casio fx-7400G Plus Introduction Running a program Deleting programs Programming your calculator Index of Programs Programming your calculator Purpose CalendarHeron Zero 2 EQ Purpose 3 EQ Purpose Quadeqtn Intrsect Minimum Maximum Search Integral Decimal Factors Dice Twodice Coin Freqdist Difflist Longrun Sransamp Normal Binomial Binprob Cmpndint