A Random Question - Printable Version +- HP Forums ( https://www.hpmuseum.org/forum)+-- Forum: HP Calculators (and very old HP Computers) ( /forum-3.html)+--- Forum: General Forum ( /forum-4.html)+--- Thread: A Random Question ( /thread-8477.html)Pages: 1 2 |

RE: A Random Question - ttw - 06-13-2017 06:13 AM
(06-11-2017 01:39 AM)DavidM Wrote:(06-11-2017 12:21 AM)ttw Wrote: Third, one could use a very long cycle generator. The error from lack divisibility does decrease with cycle length. This is probably the most practical solution. The XOR+Shift and the linear congruential and the Fibonacci and other generators are all good enough in most cases if the cycle and wordlength is long enough. I posted 64-bit parameters for the congruential and shift register generators somewhere on this board. (If the same length, these can be XORed together to get a longer cycle; if different lengths, either + or - is needed.) Or one could combine generators like cryptographic machines do. For games one needs good precision and very high unpredictability; for Monte Carlo, one needs high precision and cycle but can be predictable. I have a new type that I'm testing, but I have only empirical evidence that it works. When I've done a bit more testing (ok, several bits), I'll post the method. |