Random numbers from the Weibull distribution. Equivalent to R's rweibull().
rweibull()
Number of values to generate (fractions are truncated, as in R).
Shape parameter (required, as in R).
Optional
Scale. Default 1.
1
An array of n values; NaN for invalid parameters.
n
NaN
setSeed(1);rweibull(2, 2, { scale: 1 }); // [1.151568, 0.9942477] Copy
setSeed(1);rweibull(2, 2, { scale: 1 }); // [1.151568, 0.9942477]
Random numbers from the Weibull distribution. Equivalent to R's
rweibull().