randomstate.prng.mt19937.
standard_exponential
(size=None, dtype='d', method='inv', out=None)¶Draw samples from the standard exponential distribution.
standard_exponential is identical to the exponential distribution with a scale parameter of 1.
Parameters: |
|
---|---|
Returns: | out – Drawn samples. |
Return type: | float or ndarray |
Examples
Output a 3x8000 array:
>>> n = np.random.standard_exponential((3, 8000))