sitmo_engine_seed: Example Seed Set and RNG Draws with sitmo

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

Shows how to set a seed in sitmo.

Usage

1

Arguments

n

An unsigned int that dictates how many realizations occur.

seed

An unsigned int that controls the rng seed.

Value

A vector with random sequences.

Examples

1
2
3
4
5
6
7
n = 10
a = sitmo_engine_seed(n, 1337)
b = sitmo_engine_seed(n, 1337)
c = sitmo_engine_seed(n, 1338)

isTRUE(all.equal(a,b))
isTRUE(all.equal(a,c))

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