numpy.random.standard_exponential¶
-
numpy.random.standard_exponential(size=None)¶ Draw samples from the standard exponential distribution.
standard_exponentialis identical to the exponential distribution with a scale parameter of 1.Note
New code should use the
standard_exponentialmethod of adefault_rng()instance instead; see random-quick-start.- Parameters
- Returns
See also
Generator.standard_exponentialwhich should be used for new code.
Examples
Output a 3x8000 array:
>>> n = np.random.standard_exponential((3, 8000))