Next: , Previous: , Up: Mathematical Packages   [Contents][Index]

5.6 Random Numbers

A pseudo-random number generator is only as good as the tests it passes. George Marsaglia of Florida State University developed a battery of tests named DIEHARD ( diehard.c has a bug which the patch corrects.

SLIB’s PRNG generates 8 bits at a time. With the degenerate seed ‘0’, the numbers generated pass DIEHARD; but when bits are combined from sequential bytes, tests fail. With the seed ‘’, all of those tests pass.