Post Reply 
(12C) Two Random Generator Comparison
07-25-2018, 10:47 AM (This post was last modified: 07-26-2018 02:04 PM by Gamo.)
Post: #1
(12C) Two Random Generator Comparison
This program compare the two "Random Number Generator" by the use of "Accumulate Statistic"
Then get the " Average" result from both random generator.

1st Random Generator used: e^(X+Pi) FRAC
2nd Random Generator used: (X*997) FRAC

Second Generator used the result from the First generator as a seed.

Both generate 6 Digits Random Number then store [Σ+]

Program use the Counter to provide the amount of count to generate.

Remark: I noticed that there many discussion about Random Generator in this forum.
This program is a rough comparison only and by mean of the use of the Statistic Average.
The result average I mostly see is around
450,000 to 550,000 range. So this program is good for observation to see the many different result depending on specific count. See for yourself !!!

Example: Clear [Σ] // must clear statistic register for any new start

Example below will give different result each time.

First try small count. Let's try 100 times

100 [R/S] Display briefly show 0,00000000 indicate that almost done
506,951 // 2nd Average Random result
[X<>Y] 485,063 // 1st Average Random result

5000 [R/S] Display briefly show 0,000000000
499,077 // 2nd Average Random result
[X<>Y] 507,235 // 1st Average Random result

For very large count it is best to use the 12C+ or Emulator. I have try one million count and took about 3-4 minute on Android 12C app

Program: Compare two Random Generator
Code:

01 ENTER
02 X<>Y
03 STO 0
04 RCL 0
05 X=0 ?
06 GTO 45
07 RCL 7
08   3
09   5
10   5
11 ENTER
12   1
13   1
14   3
15   ÷
16   +
17 e^x
18 FRAC
19 STO 7
20   9
21   9
22   7
23   x
24 FRAC
25 EEX
26   6
27   x
28   1
29   +
30 INTG
31 STO 8
32 RCL 7
33 EEX
34   6
35   x
36   1
37   +
38 INTG
39 RCL 8
40 Σ+
41 CLx
42   1
43 STO-0
44 GTO 04
45   0
46 FIX 9
47 PSE
48 FIX 0
49 X bar
50 GTO 00
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(12C) Two Random Generator Comparison - Gamo - 07-25-2018 10:47 AM



User(s) browsing this thread: 1 Guest(s)