cupy.random.lognormal#

cupy.random.lognormal(mean=0.0, sigma=1.0, size=None, dtype=<class 'float'>)[source]#

Returns an array of samples drawn from a log normal distribution.

The samples are natural log of samples drawn from a normal distribution with mean mean and deviation sigma.

Parameters
  • mean (float) – Mean of the normal distribution.

  • sigma (float) – Standard deviation of the normal distribution.

  • 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.

Returns

Samples drawn from the log normal distribution.

Return type

cupy.ndarray