Post Reply 
New PRNG for calculators
06-07-2024, 03:32 AM
Post: #8
RE: New PRNG for calculators
(06-07-2024 02:05 AM)Namir Wrote:  I guess MATLAB uses more significant figures than typical calculators. How many random numbers did you generate?

Namir

None. I just looked at small intervals. The image of sufficiently small intervals with the same length transforms to another image that doesn't exceed 1.0 in length, but it does differ with the position of the interval. Knowing the interval allows one to guess the output of the next number (at least its range) with pretty good probability. For those that wrap around quite a bit, (near 1.0), one knows little about the next number; .90001's successor is .555669 (to HP50g precision)' .90002's successor is .276095. These results come from the pre-reduction interval 120626.555669 and 120661.27695. Neither of these results helps in figuring out .900015's successor (which is .914477). The successor of .10001 is 20.4866596716 and of .10002 is 20.487343122; the successor of .10015 is 20.487001537. This lies between the successors of .10001 and .10002 both before and after the MOD 1 mapping.

Exp(x) expands differently for each x. For this reason, mappings within finite fields (like shift registers) or rings (like linear congruential generators) are often used. Points within a small interval, no matter where in the range of the generator, will get spread out approximately uniformly over the whole space.

Without doing any analysis, I think you could make the exp(exp(exp(x))) work by mapping the output to binary ,then XORing with the output of a linear congruential generator.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
New PRNG for calculators - Namir - 06-06-2024, 08:17 PM
RE: New PRNG for calculators - KeithB - 06-06-2024, 08:30 PM
RE: New PRNG for calculators - Namir - 06-06-2024, 08:37 PM
RE: New PRNG for calculators - ttw - 06-07-2024, 01:35 AM
RE: New PRNG for calculators - Namir - 06-07-2024, 02:05 AM
RE: New PRNG for calculators - Namir - 06-07-2024, 02:14 AM
RE: New PRNG for calculators - ttw - 06-07-2024 03:32 AM
RE: New PRNG for calculators - Namir - 06-07-2024, 08:55 PM
RE: New PRNG for calculators - Albert Chan - 06-07-2024, 09:45 PM
RE: New PRNG for calculators - ttw - 06-08-2024, 02:51 AM
RE: New PRNG for calculators - Albert Chan - 06-08-2024, 01:46 PM
RE: New PRNG for calculators - ttw - 06-08-2024, 03:44 PM
RE: New PRNG for calculators - Albert Chan - 06-08-2024, 06:19 PM
RE: New PRNG for calculators - SlideRule - 08-08-2024, 05:48 PM
RE: New PRNG for calculators - Namir - 08-09-2024, 08:16 PM
RE: New PRNG for calculators - KeithB - 08-08-2024, 06:57 PM
RE: New PRNG for calculators - Namir - 08-09-2024, 12:39 PM
RE: New PRNG for calculators - EdS2 - 08-09-2024, 05:41 AM
RE: New PRNG for calculators - KeithB - 08-09-2024, 01:26 PM
RE: New PRNG for calculators - Namir - 08-11-2024, 02:20 PM



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