# cupy.random.weibull¶

cupy.random.weibull(a, size=None, dtype=<class 'float'>)[source]

weibull distribution.

Returns an array of samples drawn from the weibull distribution. Its probability density function is defined as

$f(x) = ax^{(a-1)}e^{-x^a}.$
Parameters: a (float) – Parameter of the weibull distribution $$a$$. size (int or tuple of ints) – The shape of the array. If None, a zero-dimensional array is generated. dtype – Data type specifier. Only numpy.float32 and numpy.float64 types are allowed. Samples drawn from the weibull distribution. cupy.ndarray