method
Draw samples from the standard exponential distribution.
standard_exponential is identical to the exponential distribution with a scale parameter of 1.
Note
New code should use the standard_exponential method of a Generator instance instead; please see the Quick start.
Output shape. If the given shape is, e.g., (m, n, k), then m * n * k samples are drawn. Default is None, in which case a single value is returned.
Drawn samples.
See also
random.Generator.standard_exponentialwhich should be used for new code.
Output a 3x8000 array:
>>> n = np.random.standard_exponential((3, 8000))
© 2005–2024 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/2.4/reference/random/generated/numpy.random.RandomState.standard_exponential.html