See Distribution$rand

rand(object, n, simplify = TRUE)

Arguments

object

(Distribution)

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.