Learn R Programming

distr6 (version 1.5.6)

rand: Random Simulation Function

Description

See Distribution$rand

Usage

rand(object, n, simplify = TRUE)

Arguments

object
n

(numeric(1)) Number of points to simulate from the distribution. If length greater than \(1\), then n <- length(n),

simplify

logical(1) If TRUE (default) simplifies the pdf if possible to a numeric, otherwise returns a data.table::data.table.

Value

Simulations as either a numeric if simplify is TRUE or as a data.table::data.table.