# vonNeumann: von Neumann Random Number Generator In ACSWR: A Companion Package for the Book "A Course in Statistics with R"

## Description

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

## Usage

 `1` ```vonNeumann(x, n) ```

## Arguments

 `x` the initial seed `n` number of required observations

## Author(s)

Prabhanjan N. Tattar

## Examples

 ```1 2 3``` ```vonNeumann(x=11,n=10) vonNeumann(x=675248,n=10) vonNeumann(x=8653,n=100) ```

### Example output

``` [1] 11 12 14 19 36 29 84  5  2  0  0
[1] 675248 959861 333139 981593 524817 432883 387691 304311 605184 247673
[11] 341914
[1] 8653 8744 4575 9306 6016 1922 6940 1636 6764 7516 4902  296  876 7673 8749
[16] 5450 7025 3506 2920 5264 7096 3532 4750 5625 6406  368 1354 8333 4388 2545
[31] 4770 7529 6858  321 1030  609 3708 7492 1300 6900 6100 2100 4100 8100 6100
[46] 2100 4100 8100 6100 2100 4100 8100 6100 2100 4100 8100 6100 2100 4100 8100
[61] 6100 2100 4100 8100 6100 2100 4100 8100 6100 2100 4100 8100 6100 2100 4100
[76] 8100 6100 2100 4100 8100 6100 2100 4100 8100 6100 2100 4100 8100 6100 2100
[91] 4100 8100 6100 2100 4100 8100 6100 2100 4100 8100 6100
```

ACSWR documentation built on May 2, 2019, 6:53 a.m.