Abstract
Good theoretical work on algorithms is often defeated by a poor computer implementation. This is particularly true of random number generators for two reasons: the overwhelming concern for speed and the inherent ill-conditioning of the problem. The emphasis on speed has often resulted in shortcuts (see Carta (1990)). These shortcuts often accept approximations, which can be disastrous in random number generation. Other shortcuts are very machine-specific, and then often get used in the wrong environment. The problem of random number generation using a deterministic recursion is ill-conditioned in the sense that small deviations (relative errors of the order of 10 −10) can cause complete loss of accuracy. (This is why any approximation is disastrous). In this paper we will concentrate on the coding considerations for a special case of a good algorithm, namely a multiplicative congruential generator with properly chosen multiplier and modulus. The discussion will use fortran constructs, but it is applicable to any programming language. We will also address implementation of recursive generators on vector processors.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.