COMMITS
/ Lib/random.py July 9, 2025
R
Minor edit: Move comments closer to the code they describe (gh-136477)
Raymond Hettinger committed
May 5, 2025
H
gh-130645: Add color to stdlib argparse CLIs (gh-133380)
Hugo van Kemenade committed
March 20, 2025
S
gh-131269: Minor optimization in random.py (#131270)
Sam Gross committed
D
gh-131435: random.randint optimization (gh-131436)
dgpb committed
March 12, 2025
R
Improve docstring for random.binomialvariate (gh-131164)
Raymond Hettinger committed
February 21, 2025
R
gh-130285: Fix handling of zero or empty counts in random.sample() (gh-130291)
Raymond Hettinger committed
September 12, 2024
A
gh-123968: Fix lower bound for `python -m random --float` (#123971)
Anders Kaseorg committed
July 19, 2024
S
gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907)
Serhiy Storchaka committed
May 5, 2024
H
gh-118131: Command-line interface for the `random` module (#118132)
Hugo van Kemenade committed
November 9, 2023
V
gh-111881: Import _sha2 lazily in random (#111889)
Victor Stinner committed
October 10, 2023
October 2, 2023
A
gh-109653: Reduce the import time of `random` by 60% (#110221)
Alex Waygood committed
September 26, 2023
R
More informative docstrings in the random module (gh-109745)
Raymond Hettinger committed
September 9, 2023
R
Fix an ironic typo in a code comment. (gh-109186)
Raymond Hettinger committed
March 23, 2023
R
Move binomialvariate() to a section for discrete distributions (GH-102955)
Raymond Hettinger committed
January 22, 2023
January 8, 2023
R
GH-100805: Support numpy.array() in random.choice(). (GH-100830)
Raymond Hettinger committed
December 15, 2022
R
GH-100234: Set a default value for random.expovariate() (GH-100235)
Raymond Hettinger committed
August 8, 2022
M
bpo-37000: Remove obsolete comment in _randbelow_with_getrandbits (#95775)
Matthias Görgens committed
July 24, 2022
R
log2() is faster than log() (#95214)
Raymond Hettinger committed
July 23, 2022
R
Compute v only when needed. (#95183)
Raymond Hettinger committed
July 13, 2022
R
GH-81620: Add random.binomialvariate() (GH-94719)
Raymond Hettinger committed
June 22, 2022
V
gh-84623: Remove unused imports (#94132)
Victor Stinner committed
May 12, 2022
R
gh-86388 Remove deprecated behaviors in randrange() (#92677)
Raymond Hettinger committed
February 15, 2022
Z
bpo-46737: Add default arguments to random.gauss and normalvariate (GH-31360)
Zackery Spytz committed
February 3, 2022
M
bpo-46624: Defer to 3.12: "Remove deprecated support for non-integer values" (GH-31098)
Miro Hrončok committed
December 10, 2021
R
Move error test to the function that needs it. Improve error message. (GH-30008)
Raymond Hettinger committed
October 16, 2021
R
bpo-42222: Remove deprecated support for non-integer values (GH-28983)
Raymond Hettinger committed
September 20, 2021
R
bpo-45155: Apply new byteorder default values for int.to/from_bytes (GH-28465)
Raymond Hettinger committed
May 4, 2021
R
bpo-40465: Remove random module features deprecated in 3.9 (GH-25874)
Raymond Hettinger committed
May 3, 2021
R
bpo-44018: random.seed() no longer mutates its inputs (GH-25856)
Raymond Hettinger committed
April 20, 2021
R
Improve the error message for choices(population, 10) (GH-25267)
Raymond Hettinger committed
February 5, 2021
R
Reduce overhead on random timings (GH-24455)
Raymond Hettinger committed
January 25, 2021
S
bpo-37319: Improve documentation, code and tests of randrange. (GH-19112)
Serhiy Storchaka committed
January 18, 2021
J
bpo-42944 Fix Random.sample when counts is not None (GH-24235)
jonanifranco committed
January 15, 2021
S
bpo-42931: randbytes missing from random.__all__ (GH-24219)
Setrak Balian committed
January 2, 2021
R
No need to test "istep==1" twice. (GH-24064)
Raymond Hettinger committed
R
bpo-42772: Step argument ignored when stop is None. (GH-24018)
Raymond Hettinger committed
December 28, 2020
R
bpo-42222: Modernize integer test/conversion in randrange() (#23064)
Raymond Hettinger committed
December 19, 2020
September 29, 2020
R
bpo-41773: Raise exception for non-finite weights in random.choices(). (GH-22441)
Ram Rachum committed
August 2, 2020
R
random module: Convert a "while 1" to "while True (GH-21700)
Raymond Hettinger committed
August 1, 2020
R
bpo-41421: Algebraic simplification for random.paretovariate() (GH-21695)
Raymond Hettinger committed
June 26, 2020
R
Improve code organization for the random module (GH-21161)
Raymond Hettinger committed
June 23, 2020
R
Small clean-ups for the random module (GH-21038)
Raymond Hettinger committed
June 13, 2020
R
Minor code clean-ups (GH-20838)
Raymond Hettinger committed
May 8, 2020
R
bpo-40541: Add optional *counts* parameter to random.sample() (GH-19970)
Raymond Hettinger committed
May 2, 2020
R
bpo-40465: Deprecate the optional argument to random.shuffle(). (#19867)
Raymond Hettinger committed
May 1, 2020
R
Simplify choice()'s interaction with the private _randbelow() method (GH-19831)
Raymond Hettinger committed
April 29, 2020
V
bpo-40286: Remove C implementation of Random.randbytes() (GH-19797)
Victor Stinner committed