iarray.random.lognormal#

iarray.random.lognormal(shape: Sequence, mean: float = 0.0, sigma: float = 1.0, cfg: Optional[Config] = None, **kwargs) IArray#

Draw samples from a log-normal distribution.

The cfg and kwargs parameters are the same than in random_sample().

Parameters
  • shape (Sequence) – The shape of the array to be created.

  • mean (float or array_like of floats, optional) – Mean value of the underlying normal distribution. Default is 0.

  • sigma (float or array_like of floats, optional) – Standard deviation of the underlying normal distribution. Must be non-negative. Default is 1.

Returns

The new array.

Return type

IArray container

See also

random_sample

References

np.random.lognormal