R/rpois_trng.R

Defines functions rpois_trng

Documented in rpois_trng

#' @template template-rdist
#' @templateVar distTitle Poisson
#' @templateVar distDesc Poisson
#' @templateVar rdist rpois
#' @templateVar n n
#' @templateVar distparam lambda
#' @example man-roxygen/example-rpois_trng.R
#' @export
rpois_trng <- function(n, lambda,
                       engine = NULL, parallelGrain = 0L) {
  if (is.null(engine)) {
    engine <- getCurrentEngine()
  }
  x <- C_rpois_trng(n, lambda, 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.