Documentation Set for Swarm 2.2
Prev | Reference V. Random Library | Next

# LCGgen

## Name

LCGgen -- Linear Congruential Generator

## Description

This classic generator relies on controlled overflow at 32 bits. This requires that unsigned be a 32bit value that follows ANSI C rules. Knuth claims that the adder c does not matter much, as long as it has no factors in common with the modulus 2^32.

NOT recommended for serious use; these are included for historical reasons (compatibility with earlier releases).

## Protocols adopted by LCGgen

SimpleRandomGenerator

## Methods

None

Prev | Home | Next
LCG3gen | Up | LogNormalDist