From: Raymond Hettinger Date: Sat, 25 Jun 2016 02:36:42 +0000 (+0300) Subject: Minor beautification X-Git-Tag: v3.6.0a3~79 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=650c1c9ddd2f678c7f6aa86b8f079dce8c1ddef5;p=thirdparty%2FPython%2Fcpython.git Minor beautification --- diff --git a/Lib/random.py b/Lib/random.py index 5950735e3ee5..1cffb0aaadc0 100644 --- a/Lib/random.py +++ b/Lib/random.py @@ -606,11 +606,11 @@ class Random(_random.Random): # This version due to Janne Sinkkonen, and matches all the std # texts (e.g., Knuth Vol 2 Ed 3 pg 134 "the beta distribution"). - y = self.gammavariate(alpha, 1.) + y = self.gammavariate(alpha, 1.0) if y == 0: return 0.0 else: - return y / (y + self.gammavariate(beta, 1.)) + return y / (y + self.gammavariate(beta, 1.0)) ## -------------------- Pareto --------------------