Post Reply 
New PRNG for calculators
06-07-2024, 03:18 AM (This post was last modified: 06-07-2024 03:21 AM by Matt Agajanian.)
Post: #7
RE: New PRNG for calculators
Hi. Excellent challenge. I just created an HP-25 version.

I also prefaced the code with a routine that scales down seeds to values 0<=seed<=1

Here it is:

Code:

To use:

Enter seed
Press CLEAR: PRGM
Press R/S repeatedly to generate successive results.

01 - 31          ENTER
02 - 15 03       ABS
03 - 01          1
04 - 51          +
05 - 14 01       INT
06 - 14 08       LOG
07 - 01          1
08 - 51          +
09 - 14 01       INT
10 - 15 08       10ˣ
11 - 71          ÷
12 - 23 01       STO 1
13 - 15 07       eˣ
14 - 15 07       eˣ
15 - 15 07       eˣ
16 - 15 01       FRAC
17 - 74          R/S
18 - 13 12       GTO 12
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 - Matt Agajanian - 06-07-2024 03:18 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)