Post Reply 
2023 RPN HHC Programming Contest
10-11-2023, 10:46 PM
Post: #55
RE: 2023 RPN HHC Programming Contest
(10-10-2023 10:20 AM)Maximilian Hohmann Wrote:  That's an interesting and very unusual approach! But how do you make it work? On my HP-11C, no matter what I use to seed the random number generator with, I don't get "41" and/or "71" as a result.

It won't directly, the idea was to get a non-zero value onto the stack using RAN# and then manipulate it into the required form. Because the rules specified a memory lost starting state, the random sequence is entirely predictable.

All of the other solutions needed to go from a stack of zeros to something non-zero (e^x, ACOS, pi, ...). This was a different way of doing it that which didn't work out.

Pauli
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
2023 RPN HHC Programming Contest - Gene - 10-07-2023, 01:00 PM
RE: 2023 RPN HHC Programming Contest - Paul Dale - 10-11-2023 10:46 PM



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