summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorleodema <leodema@users.noreply.github.com>2018-12-24 06:54:25 (GMT)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>2018-12-24 06:54:25 (GMT)
commit63d152232e1742660f481c04a811f824b91f6790 (patch)
treed7556879b3d774444c485e791cdcfde274d175e4 /Misc
parentb7105c9c9663637e4500bfcac75c911e78d9a1c0 (diff)
downloadcpython-63d152232e1742660f481c04a811f824b91f6790.zip
cpython-63d152232e1742660f481c04a811f824b91f6790.tar.gz
cpython-63d152232e1742660f481c04a811f824b91f6790.tar.bz2
bpo-30561: Sync-up expovariate() and gammavariate code (GH-1934)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2018-12-23-22-27-59.bpo-30561.PSRQ2w.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-12-23-22-27-59.bpo-30561.PSRQ2w.rst b/Misc/NEWS.d/next/Library/2018-12-23-22-27-59.bpo-30561.PSRQ2w.rst
new file mode 100644
index 0000000..ae99b7c
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2018-12-23-22-27-59.bpo-30561.PSRQ2w.rst
@@ -0,0 +1,4 @@
+random.gammavariate(1.0, beta) now computes the same result as
+random.expovariate(1.0 / beta). This synchonizes the two algorithms and
+eliminates some idiosyncrasies in the old implementation. It does however
+produce a difference stream of random variables than it used to.