mirror of
https://github.com/python/cpython.git
synced 2025-08-25 19:24:42 +00:00
One more conversion from pow() to **.
This commit is contained in:
parent
183cd1fae3
commit
8ff1099684
1 changed files with 1 additions and 1 deletions
|
@ -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 --------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue