Where can I find source code for a good, portable random number generator ?
Pascal source codes for the minimal standard random number generator are provided in [8]; you need to select one of the codes that is appropriate for your machine’s architecture. After you have implemented that code, you only need verify the correctness of the implementation, not the randomness. Presented below is a FORTRAN 77 adaptation of one of the Pascal codes that appears in [8]. This code is portable to any machine that has a maximum integer greater than, or equal to, 2**31-1. Thus, this code should run on any 32-bit machine. The code meets all of the requirements of the “minimal standard” as described in [8]. We ran it on all of the systems mentioned in this article. In general, the execution times for running the portable code were 2 to 50 times slower than the random number generator supplied by the vendor. For versions of random number generators that implement the minimal standard on machines with a maximum integer less than 2**31-1, or generators that are more specific to m