If you are interested in the Weibull distribution, you should not be using the "discrete inverse Weibull distribution", which is something rather different.
Instead just use the four Weibull distribution functions
dweibull(x, shape, scale = 1, log = FALSE)
pweibull(q, shape, scale = 1, lower.tail = TRUE, log.p = FALSE)
qweibull(p, shape, scale = 1, lower.tail = TRUE, log.p = FALSE)
rweibull(n, shape, scale = 1)
for the density, distribution function, quantile function and random values.
rweibull(100, shape=0.75, scale=1)
will give a hundred values, perhaps of the form you want, as would qweibull(runif(100), shape=0.75, scale=1)
or possibly something like qweibull(x, shape=0.75, scale=1)
where x
is a vector of 100 random values between 0 and 1