summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/random.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/random.py b/Lib/random.py
index e1c2c2b..01c0c3d 100644
--- a/Lib/random.py
+++ b/Lib/random.py
@@ -388,7 +388,7 @@ class Random(_random.Random):
u = 1.0 - u
c = 1.0 - c
low, high = high, low
- return low + (high - low) * (u * c) ** 0.5
+ return low + (high - low) * _sqrt(u * c)
## -------------------- normal distribution --------------------