powered by
Returns a function that draws n independent samples from the Weibull distribution.
n
# S3 method for weibull_dist sampler(x, ...)
A function function(n = 1, ...) returning a numeric vector of length n.
function(n = 1, ...)
A weibull_dist object.
weibull_dist
Additional arguments (not used).
x <- weibull_dist(shape = 2, scale = 3) s <- sampler(x) set.seed(42) s(5)
Run the code above in your browser using DataLab