Post Reply 
Hp Algorithm to create random numbers
08-24-2024, 12:34 PM
Post: #13
RE: Hp Algorithm to create random numbers
(08-24-2024 12:05 AM)DavidM Wrote:  RDX separates the mantissa and exponent fields of the real number given as input,
and then treats the mantissa as a 15-digit integer while combining the two into a seed.

Thanks, 15 digits mantissa make sense.
However, 16 digits mantissa is simpler to understand RDZ logic.

Code:
1E-12 = .0000 0000 0001 0000 E000   --> 0000 0000 0001 00 1
1E-13 = .0000 0000 0000 1000 E000   --> 0000 0000 0000 00 1
1E-14 = .0000 0000 0000 0100 E000   --> 0000 0000 0000 00 1
1E-15 = .0000 0000 0000 0010 E000   --> 0000 0000 0000 00 1
1E-16 = .0000 0000 0000 0001 E000   --> 0000 0000 0000 00 1
1E-17 = .0000 0000 0000 0001 E-01   --> 0000 0000 0000 99 1    ; -01 % 100 = 99
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Hp Algorithm to create random numbers - Albert Chan - 08-24-2024 12:34 PM



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