method
RandomState.standard_exponential(size=None)
Draw samples from the standard exponential distribution.
standard_exponential
is identical to the exponential distribution with a scale parameter of 1.
Parameters: |
|
---|---|
Returns: |
|
Output a 3x8000 array:
>>> n = np.random.standard_exponential((3, 8000))
© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.17.0/reference/random/generated/numpy.random.mtrand.RandomState.standard_exponential.html