The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
New PRNG for calculators
06-06-2024, 08:17 PM (This post was last modified: 06-06-2024 08:37 PM by Namir.)
Post: #1
New PRNG for calculators
I was just tinkering with an HP-21 calculator and I tried the following (I had to do the INT part by hand):

r1 = Frac(exp(exp(exp(r0))))

Where r0 is the old random number, and r1 is the new random number. I then wrote a Matlab program to generate a million random number. Here is a sample set of results:

min = 1.646694727241993e-07
max = 0.999999882210702
mean = 0.500182006746859
sdev = 0.288245734345533

For the auto correlation between 1000 elements:

min = -0.003854280151534
max = 0.003319062287133
mean = 1.567008799132003e-05
sdev = 0.001003357884267

The method looks good for random numbers for calculators.

Namir
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: 3 Guest(s)