Post Reply 
Hp Algorithm to create random numbers
08-13-2024, 10:24 PM (This post was last modified: 08-13-2024 10:26 PM by Gil.)
Post: #4
RE: Hp Algorithm to create random numbers
With the first reference
I press, on my HP50G, the command RAND
and get R(n) =.821118792263 (1)
and build R(n)_int =821118792263 (an integer) (2)

Then I multiply 2851130928467 (3)
by R(n) and get 2.34111718457E12 (4)

Then I multiply also 2851130928467 (3)
by R(n)_int and get 2341117184566508886050821 (5)

Pressing a second time RAND gives
R(n+1)=.994325264552 (6)

I thought, with the explanations of the first reference,
that the digits of (6), R(n+1), should be found somewhere in (5) or (6).

But it's clearly not the case.

Could somebody explain my error or give a detailed example?

Thanks in advance.

Regards,
Gil
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 - Gil - 08-13-2024 10:24 PM



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