summaryrefslogtreecommitdiffstats
path: root/Lib/random.py
Commit message (Expand)AuthorAgeFilesLines
* gh-86388 Remove deprecated behaviors in randrange() (#92677)Raymond Hettinger2022-05-121-43/+10
* bpo-46737: Add default arguments to random.gauss and normalvariate (GH-31360)Zackery Spytz2022-02-151-2/+2
* bpo-46624: Defer to 3.12: "Remove deprecated support for non-integer values" ...Miro HronĨok2022-02-031-10/+42
* Move error test to the function that needs it. Improve error message. (GH-30...Raymond Hettinger2021-12-101-7/+4
* bpo-42222: Remove deprecated support for non-integer values (GH-28983)Raymond Hettinger2021-10-161-42/+10
* bpo-45155: Apply new byteorder default values for int.to/from_bytes (GH-28465)Raymond Hettinger2021-09-201-3/+3
* bpo-40465: Remove random module features deprecated in 3.9 (GH-25874)Raymond Hettinger2021-05-041-38/+12
* bpo-44018: random.seed() no longer mutates its inputs (GH-25856)Raymond Hettinger2021-05-031-2/+1
* Improve the error message for choices(population, 10) (GH-25267)Raymond Hettinger2021-04-201-1/+9
* Reduce overhead on random timings (GH-24455)Raymond Hettinger2021-02-051-1/+1
* bpo-37319: Improve documentation, code and tests of randrange. (GH-19112)Serhiy Storchaka2021-01-251-24/+20
* bpo-42944 Fix Random.sample when counts is not None (GH-24235)jonanifranco2021-01-181-1/+1
* bpo-42931: randbytes missing from random.__all__ (GH-24219)Setrak Balian2021-01-151-0/+1
* No need to test "istep==1" twice. (GH-24064)Raymond Hettinger2021-01-021-4/+2
* bpo-42772: Step argument ignored when stop is None. (GH-24018)Raymond Hettinger2021-01-021-1/+7
* bpo-42222: Modernize integer test/conversion in randrange() (#23064)Raymond Hettinger2020-12-281-11/+43
* bpo-42470: Do not warn on sequences which are also sets in random.sample() (G...masklinn2020-12-191-6/+7
* bpo-41773: Raise exception for non-finite weights in random.choices(). (GH-2...Ram Rachum2020-09-291-1/+3
* random module: Convert a "while 1" to "while True (GH-21700)Raymond Hettinger2020-08-021-1/+1
* bpo-41421: Algebraic simplification for random.paretovariate() (GH-21695)Raymond Hettinger2020-08-011-1/+1
* Improve code organization for the random module (GH-21161)Raymond Hettinger2020-06-261-177/+176
* Small clean-ups for the random module (GH-21038)Raymond Hettinger2020-06-231-30/+27
* Minor code clean-ups (GH-20838)Raymond Hettinger2020-06-131-89/+110
* bpo-40541: Add optional *counts* parameter to random.sample() (GH-19970)Raymond Hettinger2020-05-081-5/+29
* bpo-40465: Deprecate the optional argument to random.shuffle(). (#19867)Raymond Hettinger2020-05-021-0/+4
* Simplify choice()'s interaction with the private _randbelow() method (GH-19831)Raymond Hettinger2020-05-011-9/+5
* bpo-40286: Remove C implementation of Random.randbytes() (GH-19797)Victor Stinner2020-04-291-0/+6
* bpo-40325: Deprecate set object support in random.sample() (GH-19591)Raymond Hettinger2020-04-191-1/+4
* bpo-40282: Allow random.getrandbits(0) (GH-19539)Antoine Pitrou2020-04-171-2/+4
* bpo-40286: Add randbytes() method to random.Random (GH-19527)Victor Stinner2020-04-171-0/+7
* bpo-38881: choices() raises ValueError when all weights are zero (GH-17362)Raymond Hettinger2019-11-231-1/+3
* bpo-32554: Deprecate hashing arbitrary types in random.seed() (GH-15382)Raymond Hettinger2019-08-221-2/+13
* bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)Serhiy Storchaka2019-06-011-1/+1
* bpo-36559: random module: optimize sha512 import (GH-12742)Christian Heimes2019-04-101-1/+8
* Convert range to repeat for choices() (#11889)Raymond Hettinger2019-02-161-3/+3
* Be consistent about the use of from-imports in random module (GH-11837)Raymond Hettinger2019-02-131-4/+4
* bpo-35782: Fix error message in randrange (GH-11620)Kumar Akshay2019-01-211-1/+1
* bpo-30561: Sync-up expovariate() and gammavariate code (GH-1934)leodema2018-12-241-4/+1
* bpo-35513, unittest: TextTestRunner uses time.perf_counter() (GH-11180)Victor Stinner2018-12-171-2/+2
* Remove unnecessary and over-restrictive type check (GH-10905)Raymond Hettinger2018-12-041-2/+0
* Add comments regarding speed/space/entropy trade-offs (GH-10885)Raymond Hettinger2018-12-041-0/+13
* Hoist the float conversion out of the inner loop. (GH-10430)Raymond Hettinger2018-11-091-1/+2
* Minor code refactoring. Compute len() one fewer times on one code path. (GH-...Raymond Hettinger2018-07-041-4/+4
* bpo-24567: Random subnormal.diff (#7954)Raymond Hettinger2018-06-271-1/+3
* bpo-33144: Fix choosing random.Random._randbelow implementation. (GH-6563)Serhiy Storchaka2018-05-081-12/+10
* bpo-33144: random.Random and subclasses: split _randbelow implementation (GH-...Wolfgang Maier2018-04-171-14/+38
* bpo-33203: Ensure random.choice always raises IndexError on empty sequence (G...Wolfgang Maier2018-04-051-0/+2
* bpo-31482: Missing bytes support for random.seed() version 1 (#3614)Raymond Hettinger2017-09-171-2/+3
* random_triangular: sqrt() is more accurate than **0.5 (#3317)Raymond Hettinger2017-09-041-1/+1
* fix comment (#1798)leodema2017-06-041-1/+1