HP41C random number generator help
|
12-08-2017, 09:17 PM
(This post was last modified: 12-08-2017 09:18 PM by Trond.)
Post: #23
|
|||
|
|||
RE: HP41C random number generator help
(12-08-2017 07:43 PM)Dieter Wrote: Why don't you simply do it ...right? There is a clear definition of the minimal properties that have to be met: seven decimals, and the last one must be 1, 3, 7 or 9. This can be done with the following SEED code: I guess I missed the 1, 3, 7, 9 part, but yes I meant beyond the sixth decimal (do we have this written down somewhere? You seemed uncertain too). I was thinking not to change the seed if it's not necessary, but well, not sure how often it matters. But I also wanted to replace seeds that always predictably produce numbers that start with 0 in the first few decimals. Very small seeds will always start up with 0 in their first few decimals, and this includes the seed 0.0000003 which will be common (since the variable having a 0 stored is common). Having said that, my other random number generator program is working fine so, no big issue there. It was just a bit fascinating with the simplicity of multiplying with one number. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)