sitmo (version 2.0.1)

sitmo_engine_reset: Example Seed Set and RNG Draws with sitmo

Description

Shows how to set a seed in sitmo.

Usage

sitmo_engine_reset(n, seed)

Arguments

n

An unsigned int that dictates how many realizations occur.

seed

An unsigned int that controls the rng seed.

Value

A matrix with random sequences.

Examples

Run this code
# NOT RUN {
n = 10
a = sitmo_engine_reset(n, 1337)

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

Run the code above in your browser using DataLab