The TeX Catalogue Online

lcg

Generate random integers.

The lcg package generates random numbers (integers) via a linear congruential generator (Schrage’s method). The random numbers are written to a counter. The keyval package is used for the user to provide values for the range and a seed, and for the name of the counter to be used.

See also random.

The author is Erich Janka. The package is Copyright © 2001,2003,2008 Erich Janka.

License: lppl Version: 1.3 Catalogued: 2014-01-04