CMU Artificial Intelligence Repository
Home INFO Search FAQs Repository Root

Pseudo-random number generator implemented in Common Lisp.

This is a portable pseudo-random number generator for Common LISP. It is seedable, has a periord of 10^30 passes all of the statistical tests and is four times faster than the built-in ones provided in Allegro and Lucid. The program was converted from a C program that was converted from a FORTRAN program. The correctness of the generator can be verified by the TEST function at the end of the file. The FORTRAN version was written by George Marsaglia and Arif Zaman of Florida State University. George Marsaglia originally proposed this algorithm (see reference below). The C port was performed by Karl-L. Noell and Helmut Weber of the FHW (Fachhochschule Wiesbaden, W. Germany) Department of Computer Science in April 1989.

   comp.lang.lisp post by Chris McConnell

Version: 17-MAY-93 Requires: Common Lisp Copying: Use, copying, modification, and distribution permitted. CD-ROM: Prime Time Freeware for AI, Issue 1-1 Author(s): Chris McConnell Keywords: Authors!McConnell, CMU, Lisp!Math, Math, Pseudo-Random Number Generator, Random Number Generators References: George Marsaglia, Florida State University Report FSU-SCRI-87-50.
Last Web update on Mon Feb 13 10:30:26 1995