Kaydet (Commit) 8ff10996 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

One more conversion from pow() to **.

üst 183cd1fa
...@@ -599,7 +599,7 @@ class Random(_random.Random): ...@@ -599,7 +599,7 @@ class Random(_random.Random):
# Jain, pg. 495 # Jain, pg. 495
u = 1.0 - self.random() u = 1.0 - self.random()
return 1.0 / pow(u, 1.0/alpha) return 1.0 / u ** (1.0/alpha)
## -------------------- Weibull -------------------- ## -------------------- Weibull --------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment