Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sitmo_two_seeds

Two RNG engines running side-by-side


Description

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

Usage

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

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

Parallel Pseudo Random Number Generator (PPRNG) 'sitmo' Header Files

v2.0.1
MIT + file LICENSE
Authors
James Balamuta [aut, cre, cph] (<https://orcid.org/0000-0003-2826-8458>), Thijs van den Berg [aut, cph], Ralf Stubner [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.