48
Section 4: Statistics Functions
How many different four-card hands can be dealt from a deck of 52 cards?
Keystrokes
Display
52
v
4
4
Fifty-two (
y
) cards dealt four
(
x
) at a time.
|c
270,725.0000
Number of different hands
possible.
The maximum size of
x
or
y is
9,999,999,999.
Random Number Generator
Pressing
´#
(random number)
will generate a random number
(part of a uniformly distributed pseudo-random number sequence) in the
range 0 ≤
r
<1.
*
At initial power-up (including reset of Continuous Memory), the HP-15C
random number generator will use zero as a ―seed‖ to initiate a random
number sequence. Any time you generate a random number, that number
becomes the seed for the next random number. You can initiate a different
random number sequence by storing a new seed for the random number
generator. (Repetition of a random number seed will produce repetition of
the random number sequence.)
O´#
will store the X-register number (0 ≤
r <
1) as a new seed
for the random number generator. (A value for
r
outside this range will be
converted to fit within the range.)
l´#
will recall to the display the current random number seed.
Keystrokes
Display
.5764
0.5764
Stores 0.5764 as random number seed.
(The
´
keystroke may be omitted.)
O´
#
0.5764
´#
0.3422
Random number sequence initiated by the
above seed.
´#
0.2809
−
0.0000
*
Passes the spectral test (D. Knuth, The Art of Computer Programming. Vol. 2. Seminumerical Algorithms,
Third Edition, 1998).
Summary of Contents for HP-15C
Page 1: ...HP 15C Owner s Handbook HP Part Number 00015 90001 Edition 2 4 Sep 2011 ...
Page 17: ...Part l HP 15C Fundamentals ...
Page 64: ......
Page 65: ...Part ll HP 15C Programming ...
Page 118: ...118 ...