mirror of
				https://github.com/python/cpython.git
				synced 2025-10-25 18:54:53 +00:00 
			
		
		
		
	GH-100234: Set a default value for random.expovariate() (GH-100235)
This commit is contained in:
		
							parent
							
								
									8356c14b4f
								
							
						
					
					
						commit
						b430399d41
					
				
					 4 changed files with 8 additions and 2 deletions
				
			
		|  | @ -577,7 +577,7 @@ def lognormvariate(self, mu, sigma): | |||
|         """ | ||||
|         return _exp(self.normalvariate(mu, sigma)) | ||||
| 
 | ||||
|     def expovariate(self, lambd): | ||||
|     def expovariate(self, lambd=1.0): | ||||
|         """Exponential distribution. | ||||
| 
 | ||||
|         lambd is 1.0 divided by the desired mean.  It should be | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Raymond Hettinger
						Raymond Hettinger