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)
}
miraisolutions/rTRNG documentation built on Feb. 4, 2024, 7:35 p.m.