tests/test-SFMT.R

library(randtoolbox)

n <- 5

#produce the same outputs since the same seed is used

setSeed(1234)
SFMT(n, mexp=607, usepset=FALSE)
setSeed(1234)
SFMT(n, mexp=607, usepset=FALSE)

#only first call produce the same outputs since time machine is used otherwise

setSeed(1234)
SFMT(n, mexp=607, usepset=FALSE)
SFMT(n, mexp=607, usepset=FALSE)
setSeed(1234)
SFMT(n, mexp=607, usepset=FALSE)
SFMT(n, mexp=607, usepset=FALSE)

Try the randtoolbox package in your browser

Any scripts or data that you put into this service are public.

randtoolbox documentation built on Jan. 29, 2023, 3:02 a.m.