diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2013-02-10 14:16:56 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2013-02-10 14:16:56 (GMT) |
commit | 6427358501ac5b5a33b1c0543b46f6d378cea7e3 (patch) | |
tree | c9f09918209cea1c7331ca9d2b24c000875f16e0 /Lib/random.py | |
parent | bf95c143a29aa73eed91b630849432f1ff43d602 (diff) | |
parent | be5f91957f3d553a7cbbfdc43f66a3b30bb97aec (diff) | |
download | cpython-6427358501ac5b5a33b1c0543b46f6d378cea7e3.zip cpython-6427358501ac5b5a33b1c0543b46f6d378cea7e3.tar.gz cpython-6427358501ac5b5a33b1c0543b46f6d378cea7e3.tar.bz2 |
Issue #17149: merge fix from 3.2.
Diffstat (limited to 'Lib/random.py')
-rw-r--r-- | Lib/random.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/random.py b/Lib/random.py index 6388f29..c275071 100644 --- a/Lib/random.py +++ b/Lib/random.py @@ -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 |