draw

LogNormal.draw(rng, size=None)

Draws one or more samples from the distribution.

Parameters:
  • rng (np.random.Generator) – A random generator to use to draw samples.

  • size (int | tuple[int] | None) – The number of samples or size of the output array.

Returns:

One or more samples drawn from the distribution. If size is None, a single value should be returned. Otherwise, an ndarray with shape size should be returned, where each element is independently drawn from the distribution.

Return type:

T | ndarray