checkRNG(x, y = getRNG(), ...)
rng.equal
.checkRNG
checks if two objects have the same RNG
settings and should be used in unit tests, e.g., with the
RUnit package.
# check for differences in RNGset.seed(123)checkRNG(123)Using RUnit framework provider: RUnit[1] TRUEtry( checkRNG(123, 123) )[1] TRUEtry( checkRNG(123, 1:3) )