mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
Issue #17149: merge fix from 3.2.
This commit is contained in:
commit
6427358501
3 changed files with 19 additions and 2 deletions
|
@ -449,9 +449,9 @@ class Random(_random.Random):
|
|||
|
||||
u3 = random()
|
||||
if u3 > 0.5:
|
||||
theta = (mu % TWOPI) + _acos(f)
|
||||
theta = (mu + _acos(f)) % TWOPI
|
||||
else:
|
||||
theta = (mu % TWOPI) - _acos(f)
|
||||
theta = (mu - _acos(f)) % TWOPI
|
||||
|
||||
return theta
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue