draw
- LogUniform.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
sizeisNone, a single value should be returned. Otherwise, an ndarray with shapesizeshould be returned, where each element is independently drawn from the distribution.- Return type:
T | ndarray