R/rnorm_trng.R

Defines functions rnorm_trng

Documented in rnorm_trng

#' @template template-rdist
#' @templateVar distTitle Normal
#' @templateVar distDesc normal
#' @templateVar rdist rnorm
#' @templateVar n n
#' @templateVar distparam mean,sd
#' @example man-roxygen/example-rnorm_trng.R
#' @export
rnorm_trng <- function(n, mean = 0, sd = 1,
                       engine = NULL, parallelGrain = 0L) {
  if (is.null(engine)) {
    engine <- getCurrentEngine()
  }
  x <- C_rnorm_trng(n, mean, sd, engine, parallelGrain)
  return(x)
}

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.