R/TRNGseed.R

Defines functions TRNGseed

Documented in TRNGseed

#' @rdname TRNG.Random
#' @description \code{TRNGseed} specifies the seed for the current
#'   engine.
#' @param seed Scalar integer seed, determining the internal state of the
#'   current engine.
#' @include TRNGkind.R
#' @export
TRNGseed <- function(seed) {
  getCurrentEngine()$seed(seed)
  invisible(NULL)
}

Try the rTRNG package in your browser

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

rTRNG documentation built on March 18, 2022, 7:15 p.m.