sitmo_two_seeds: Two RNG engines running side-by-side

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

Shows how to create two separate RNGs and increase them together.

Usage

1
sitmo_two_seeds(n, seeds)

Arguments

n

An unsigned int that dictates how many realizations occur.

seeds

A vec containing two integers greater than 0.

Value

A matrix with random sequences.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
n = 10
a = sitmo_two_seeds(n, c(1337, 1338))

b = sitmo_two_seeds(n, c(1337, 1337))

isTRUE(all.equal(a[,1], a[,2]))

isTRUE(all.equal(b[,1], b[,2]))

isTRUE(all.equal(a[,1], b[,1]))

sitmo documentation built on Oct. 13, 2021, 9:07 a.m.