Download Print this page

HP 35s Instruction Manual page 5

Using random numbers for simulations
Hide thumbs Also See for HP 35s:

Advertisement

hp calculators
HP 35s Using random numbers for simulations
lowest possible valid value of rolling a die is 1, the process to transform a decimal random number into a
value between 1 and 6 will be:
Result = The integer value of ( the random number x 6 plus 1 )
It is necessary to multiply the decimal random number generated by 6, add 1 and take the integer value of
the result. Since two die are to be rolled, this will be done two times. Store the initial seed and then
generate the first random number.
In RPN mode:
In algebraic mode: ¹
In RPN mode:
In algebraic mode:
In RPN mode:
In algebraic mode:
Answer:
The value of the first die was a 4 and the second was a 3, for a total on the two dice of 7. Figures 10
through 12 show the display assuming algebraic mode. Note: In algebraic mode, to generate another
random dice roll, it is much quicker to press Öand then Ï. This will re-evaluate the previous
command line.
hp calculators
¹
¹g
¹g
- 5 -
Figure 10
¹g
Figure 11
¹g
Figure 12
HP 35s Using random numbers for simulations - Version 1.0

Advertisement

loading