]> granicus.if.org Git - python/commitdiff
One more conversion from pow() to **.
authorRaymond Hettinger <python@rcn.com>
Wed, 8 Sep 2010 18:58:33 +0000 (18:58 +0000)
committerRaymond Hettinger <python@rcn.com>
Wed, 8 Sep 2010 18:58:33 +0000 (18:58 +0000)
Lib/random.py

index c57dc2b1980d8ced70051041b4b5c7369e79d239..e4073ddb5a857f27dce806bc1150853f6fecd114 100644 (file)
@@ -599,7 +599,7 @@ class Random(_random.Random):
         # Jain, pg. 495
 
         u = 1.0 - self.random()
-        return 1.0 / pow(u, 1.0/alpha)
+        return 1.0 / u ** (1.0/alpha)
 
 ## -------------------- Weibull --------------------