Shows how to set a seed in sitmo.
sitmo_engine_seed(n, seed)
An unsigned int that dictates how many realizations occur.
unsigned int
An unsigned int that controls the rng seed.
A vector with random sequences.
vector
# NOT RUN { 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)) # }
Run the code above in your browser using DataLab