(50g) Programme to Produce a Cryptologically Interesting Random Bit
|
07-15-2023, 03:34 PM
Post: #1
|
|||
|
|||
(50g) Programme to Produce a Cryptologically Interesting Random Bit
For no input the programme returns 1. or 0..
Code: Size: 114. |
|||
07-16-2023, 10:37 AM
Post: #2
|
|||
|
|||
RE: (50g) Programme to Produce a Cryptologically Interesting Random Bit
Slightly improved programme:
Code: Size: 91. |
|||
07-18-2023, 04:02 PM
Post: #3
|
|||
|
|||
RE: (50g) Programme to Produce a Cryptologically Interesting Random Bit
I can't find a reference for FPTR F 1A. I figured that translates into address 01A00F but didn't find it in any of the entries files that I have. What does that do?
Thanks, Dave |
|||
07-18-2023, 05:08 PM
Post: #4
|
|||
|
|||
RE: (50g) Programme to Produce a Cryptologically Interesting Random Bit
(07-18-2023 04:02 PM)David Hayden Wrote: I can't find a reference for FPTR F 1A. I figured that translates into address 01A00F but didn't find it in any of the entries files that I have. What does that do? That is the post-dispatch subroutine for the UserRPL SREPL command. Calling that flashptr essentially gives you the "missing" SysRPL version of that command. I'm pretty sure I've used that Flashptr quite a few times myself. |
|||
07-22-2023, 09:04 AM
Post: #5
|
|||
|
|||
RE: (50g) Programme to Produce a Cryptologically Interesting Random Bit
After some testing the programme in posting #1 has an average value nearer to 0.5 than that of posting #2 - Could some erudite individual venture a reason for different average values?
|
|||
07-22-2023, 11:56 PM
Post: #6
|
|||
|
|||
RE: (50g) Programme to Produce a Cryptologically Interesting Random Bit
(07-22-2023 09:04 AM)Gerald H Wrote: After some testing the programme in posting #1 has an average value nearer to 0.5 than that of posting #2 - Could some erudite individual venture a reason for different average values? I'm not qualified to answer your specific question as posted, but I am definitely aware that it is easy to introduce bias in PRNGs when applying digit manipulations to the results. I suspect there's a bias resulting from the method used in your second program, though it's not clear to me where it's coming from. Of course you could simply test the RAND value as being > or < 0.5, but that is a rather blunt force method which disregards the "randomness" of the trailing digits to give its result. If you want all of the RAND digits to have some influence in the output, something like this might work: Code: :: I'm not an expert in PRNGs, so I won't guarantee that there's no bias in the above method. In fact, I suspect it's likely that there is some bias due to the checksum always including the same prologue data for each RAND result. That said, the averages for each block of 1 million I tested still seemed reasonable: 0.499529 0.499503 0.500005 0.500317 0.500096 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)