Download Print this page

Random Numbers - HP 35s Instruction Manual

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

Advertisement

hp calculators
HP 35s Using random numbers for simulations

Random numbers

Random numbers have uses as varied as games and stock market simulations. On the HP 35s, generating random
numbers involves providing a starting decimal seed to the calculator using the ¹
between 0 and 1 are then generated sequentially using the
A different series of random numbers will be generated from each decimal number used as an initial seed. Using the
same initial seed will result in the same series of random numbers.
Simulation
A useful application of random numbers is to simulate complex processes that involve the element of chance. These
simulations can be as easy as simulating the flip of a coin or can be quite elaborate. The examples below are far from
exhaustive, but provide an illustration of how random numbers can be used on the HP 35s.
Practice solving problems angles and times
Example 1: Simulate flipping a coin four times. Use a starting seed of 0.123456.
Solution:
When a coin is flipped, the probability of heads is 0.5 and of tails also 0.5. Let the decimal range of 0 <
random number < 0.5 equate to observing a "heads." The decimal range of 0.5 <= random number <1 will
equate to a tails. Store the initial seed and then generate the four random numbers.
In RPN mode:
In algebraic mode: ¹
In RPN mode, press
In RPN mode, press
In RPN mode, press
In RPN mode, press
hp calculators
¹
. In algebraic mode:
. In algebraic mode:
. In algebraic mode:
. In algebraic mode:
- 2 -
function. Random numbers
function.
Figure 1
Figure 2
Figure 3
HP 35s Using random numbers for simulations - Version 1.0

Advertisement

loading