Learn R Programming

PRNG (version 0.0.2.1.2)

linear_con: 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)

Value

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

Arguments

x0

seed value

Examples

Run this code
linear_con(5)


Run the code above in your browser using DataLab