linear_con: Linear congruence map

View source: R/PRNG.R

linear_conR Documentation

Linear congruence map

Description

the map is a member of the family of the maps f(x)=(ax+b) mod(n)

Usage

linear_con(x0)

Arguments

x0

seed value

Value

the map gives an integer ax+b mod(n)

Examples

linear_con(5)



PRNG documentation built on Sept. 11, 2024, 6:13 p.m.