Learn R Programming

ACSWR (version 1.0)

vonNeumann: von Neumann Random Number Generator

Description

The "vonNeumann" function implements the von Neumann random generator as detailed in Section 11.2.

Usage

vonNeumann(x, n)

Arguments

x
the initial seed
n
number of required observations

Examples

Run this code
vonNeumann(x=11,n=10)
vonNeumann(x=675248,n=10)
vonNeumann(x=8653,n=100)

Run the code above in your browser using DataLab