diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-02-10 14:32:22 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-02-10 14:32:22 (GMT) |
commit | 8b466c99329c0d422a48acfae0c20ec1e76ef314 (patch) | |
tree | e7c8e9d09315bcca4cccead6fe864c294ffee319 /Lib/random.py | |
parent | 1ef876cd28aa2f76edffb6e4d209c6a49b5705ef (diff) | |
parent | 1b901baee592edfdf62de2302d786bc8334f65b1 (diff) | |
download | cpython-8b466c99329c0d422a48acfae0c20ec1e76ef314.zip cpython-8b466c99329c0d422a48acfae0c20ec1e76ef314.tar.gz cpython-8b466c99329c0d422a48acfae0c20ec1e76ef314.tar.bz2 |
merge heads
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 2ad3809..0e67ddb 100644 --- a/Lib/random.py +++ b/Lib/random.py @@ -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 |