On 5/7/2010 6:13:10 PM, Schiffs wrote:
I strongly suggest anyone who is serious about generation of random numbers consult Press, et. al., Numerical Recipes (3rd edition) Cambridge University Press, ISBN 978-0-521-88068-8. One can obtain a CD with all the source code in C or FORTRAN.
For testing, the authoritative reference is Knuth, The Art of COmputer Programming, Volume 2, 2nd edition, Addison Wesley, ISBN 0-201-03822-6.
Incidentally, I came to this forum looking for some insight into how the Mathcad uniform random number generator runif works. There is zero documentation on it.
Experience tells me that if there is no documentation, it probably means that the routine is junk. In the case of random number generators, this may be true even if there is documentation, as you will see should you read either of the two references above.
According to the Mathcad 11 User Guide, rnd and runif use Knuth's Linear Congruence Method.
Stuart