We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8adc73c commit f5ea83fCopy full SHA for f5ea83f
Lib/random.py
@@ -388,7 +388,7 @@ def triangular(self, low=0.0, high=1.0, mode=None):
388
u = 1.0 - u
389
c = 1.0 - c
390
low, high = high, low
391
- return low + (high - low) * (u * c) ** 0.5
+ return low + (high - low) * _sqrt(u * c)
392
393
## -------------------- normal distribution --------------------
394