Random Number Generator - HP 12c Platinum Reference Manual

Hp 12c platinum: reference guide
Hide thumbs Also See for 12c Platinum:
Table of Contents

Advertisement

Random Number Generator

This HP 12C Platinum program calculates uniformly distributed pseudo-random numbers
u
in the range
i
The following method is used:
u
= fractional part of (997 u
i+1
where i = 0, 1, 2, ...
u
= 0.5284163
0
The period of this generator has a length of 500,000 numbers and the generator passes the
frequency test (chi square) for uniformity, the serial test and the run test. The most
significant digits (the left hand digits) are the most random digits. The right most digits
are significantly less random.
12c platinum / 12C
RPN KEYSTROKES
fs
fCLEARÎ
.
5
2
8
4
1
6
3
?0
9
9
7
§
gT
?0
t
g(010
fs
n: Unused
FV: Unused
*
Other seeds may be selected but the quotient of (seed x 10
integer. Also, it would be wise to statistically test other seeds before using them.
0 < u
)
i
*
(seed)
DISPLAY
000,
48 .
001,
5 5
002,
2 2
003,
8 8
004,
4 4
005,
1 1
006,
6 6
007,
3 3
008,
0 §
009,
44
9 9
010,
9 9
011,
7 7
012,
20 ³
013,
24 gT
014,
43
0 ?0
015,
44
31 t
016,
017,43,33,010 g(009
REGISTERS
i: Unused
R
: U
0
i
< 1
i
12c platinum
ALG KEYSTROKES
fs
fCLEARÎ
fs
PV: Unused
R
-R
: Unused
1
.7
7
) divided by two or five must not be an
Statistics 119
DISPLAY
000,
001,
48
002,
5
003,
2
004,
8
005,
4
006,
1
007,
6
008,
3
009,
20
010,
9
011,
9
012,
7
013,
36
014,
43
24
015,
44
0
016,
31
017,43,33,009
PMT: Unused

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents