|
|
|
|
|
by vrfcodf
3726 days ago
|
|
This only matters in calculations where randomness is important, i.e. Monte Carlo method. Nevertheless, if you don't use the least significant bits, and if the constants are carefully chosen, MLCG passes most of the hardest statistical tests. For example it passes all DIEHARD tests, and most of TESTU01. |
|
You also need an MLCG over the range 0..2^64-1 to match the given algorithm. I believe that requires some extra code to handle potential overflow in a MLCG, so adds a few more lines to your estimate.