Issue #17149: merge fix from 3.3.

This commit is contained in:
Mark Dickinson 2013-02-10 14:17:20 +00:00
commit 1b901baee5
3 changed files with 19 additions and 2 deletions

View file

@ -450,9 +450,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