Skip to contents

Set the random-number generator of the current R session to a stream created by util_make_rng_streams(), so that the following random draws of a randomisation run come from that stream.

Usage

util_set_rng_stream(rng_stream)

Arguments

rng_stream

integer vector of length 7, a value of .Random.seed for the "L'Ecuyer-CMRG" generator. A value of another length or another generator kind gives an error.

Value

NULL, invisibly. Called for its side effect on .Random.seed in the global environment, which also switches the generator kind to "L'Ecuyer-CMRG". Callers that must preserve the user's generator save and restore it themselves (see estimate_roc()).