mtalg.random.lognormal
- lognormal(mean: Number = 0.0, sigma: Number = 1.0, size: int | tuple | None = None) ndarray | Number[source]
Draw from a lognormal distribution.
- Parameters:
mean – Mean value of the underlying normal distribution. Default is 0.
sigma – Standard deviation of the underlying normal distribution. Must be non-negative. Default is 1.
size – Output shape.
- Returns:
numpy.ndarray or scalar.