From 650c1c9ddd2f678c7f6aa86b8f079dce8c1ddef5 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 25 Jun 2016 05:36:42 +0300 Subject: [PATCH] Minor beautification --- Lib/random.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/random.py b/Lib/random.py index 5950735e3ee..1cffb0aaadc 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 --------------------