Generator.standard_exponential(self, size=None, dtype='d', method=None, out=None)

Draws samples from a standard exponential distribution.

standard_exponential is identical to the exponential distribution with a scale parameter of 1.

sizeint or tuple of ints, optional

Output shape. If the given shape is, e.g., (m, n, k), then m * n * k samples are drawn.

dtypedtype, optional

Desired dtype of the result, either 'd' (or 'float64') or 'f' (or 'float32'). All dtypes are determined by their name. The default value is 'd'.

methodstr, optional

Function by this argument is not implemented.

outndarray, optional

Alternative output array in which to place the result. If size is not None, it must have the same shape as the provided size and must match the type of the output values.


Drawn samples.


>>> import nlcpy as vp
>>> n = vp.random.default_rng().standard_exponential((3, 8000))