Returns a given number of points sampled from the distribution.
rand(object, n, simplify = TRUE)Distribution.
number of observations. If length(n) > 1, the length is taken to be the number required.
if TRUE (default) returns results in simplest form (vector or data.table) otherwise as data.table.
Simulated draws from the distribution as either a numeric if simplify is TRUE
or as a data.table.
$rand(n, simplify = TRUE)
If available a rand will be returned without warning using an analytic expression. Otherwise,
if the distribution has not been decorated with FunctionImputation, NULL is returned.
To impute the rand, use decorate(distribution, FunctionImputation), this will provide a numeric
calculation for the rand with warning.
Additional named arguments can be passed, which are required for composite distributions such as
ProductDistribution and ArrayDistribution.
pdf, cdf, quantile for other statistical functions.
FunctionImputation, decorate for imputing missing functions.