File lcseval.icn

Summary

###########################################################################

	File:     lcseval.icn

	Subject:  Procedure to evaluate linear congruence parameters

	Author:   Ralph E. Griswold

	Date:     May 23, 1996

###########################################################################

   This file is in the public domain.

###########################################################################

  rcseval(a, c, m) evaluates the constants used in a linear congruence
  recurrence for generating a sequence of pseudo-random numbers.
  a is the multiplicative constant, c is the additive constant, and
  m is the modulus.

  Any line of output starting with asterisks indicates a problem.

  See Donald E. Knuth, "Random Numbers" in The Art of Computer Programming,
  Vol. 2, Seminumerical Algorithms, Addison-Wesley, Reading, Massachusetts,
  1969, pp. 1-160.

###########################################################################

  Deficiency:  The modulus test for a assumes m is a power of 2.

###########################################################################

  Requires:  large integers

###########################################################################
Procedures:
lcseval

This file is part of the (main) package.

Source code.

Details
Procedures:

lcseval(a, c, m)



This page produced by UniDoc on 2021/04/15 @ 23:59:54.