#

Search | Home | Alpha | Brief | Topical | Hierarchical

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 to set values for the range, a seed, and the name of the counter.

See also random.

The author is Erich Janka.

License: lppl Catalogued: 2006-12-30

- Visit
  - Visit a nearby CTAN:/macros/latex/contrib/lcg. If this fails, try Cambridge.
  - Visit Cambridge:/macros/latex/contrib/lcg
- Download
  - Download from a nearby CTAN (automatically identified).
  - Download from Cambridge.
- Documentation
  - Package documentation: lcg.pdf.
- Distributions
  - This package is included in TeX Live.
  - This package is included in MikTeX.