Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [3.13] gh-123968: Fix lower bound for `python -m random --float` (GH-123971) ↵ | Miss Islington (bot) | 2024-09-23 | 1 | -3/+3 |
| | | | | | | | | (#124009) gh-123968: Fix lower bound for `python -m random --float` (GH-123971) (cherry picked from commit a362c41bc934fabe6bfef9be1962005b38396860) Co-authored-by: Anders Kaseorg <andersk@mit.edu> | ||||
* | [3.13] gh-121905: Consistently use "floating-point" instead of "floating ↵ | Serhiy Storchaka | 2024-07-19 | 1 | -1/+1 |
| | | | | | point" (GH-121907) (GH-122012) (cherry picked from commit 1a0c7b9ba48a2dffb70bb0c7327abae1d3e87356) | ||||
* | gh-118131: Command-line interface for the `random` module (#118132) | Hugo van Kemenade | 2024-05-05 | 1 | -1/+71 |
| | |||||
* | gh-111881: Import _sha2 lazily in random (#111889) | Victor Stinner | 2023-11-09 | 1 | -11/+15 |
| | | | | | | | The random module now imports the _sha2 module lazily in the Random.seed() method for str, bytes and bytearray seeds. It also imports lazily the warnings module in the _randbelow() method for classes without getrandbits(). Lazy import makes Python startup faster and reduces the number of imported modules at startup. | ||||
* | gh-110050: Adjust the newline position in the TypeError message of the ↵ | Yilei Yang | 2023-10-10 | 1 | -2/+2 |
| | | | | | random.seed call. (#110051) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> | ||||
* | gh-109653: Reduce the import time of `random` by 60% (#110221) | Alex Waygood | 2023-10-02 | 1 | -1/+1 |
| | |||||
* | More informative docstrings in the random module (gh-109745) | Raymond Hettinger | 2023-09-26 | 1 | -5/+34 |
| | |||||
* | Fix an ironic typo in a code comment. (gh-109186) | Raymond Hettinger | 2023-09-09 | 1 | -1/+1 |
| | |||||
* | Move binomialvariate() to a section for discrete distributions (GH-102955) | Raymond Hettinger | 2023-03-23 | 1 | -20/+25 |
| | |||||
* | GH-101097: Switch from standard interval notation to greater or less than ↵ | Andrew Hong | 2023-01-22 | 1 | -1/+1 |
| | | | | signs for random.random()'s documentation (#101119) | ||||
* | GH-100805: Support numpy.array() in random.choice(). (GH-100830) | Raymond Hettinger | 2023-01-08 | 1 | -1/+4 |
| | |||||
* | GH-100234: Set a default value for random.expovariate() (GH-100235) | Raymond Hettinger | 2022-12-15 | 1 | -1/+1 |
| | |||||
* | bpo-37000: Remove obsolete comment in _randbelow_with_getrandbits (#95775) | Matthias Görgens | 2022-08-08 | 1 | -1/+1 |
| | |||||
* | log2() is faster than log() (#95214) | Raymond Hettinger | 2022-07-24 | 1 | -3/+3 |
| | |||||
* | Compute v only when needed. (#95183) | Raymond Hettinger | 2022-07-23 | 1 | -1/+1 |
| | |||||
* | GH-81620: Add random.binomialvariate() (GH-94719) | Raymond Hettinger | 2022-07-13 | 1 | -2/+93 |
| | |||||
* | gh-84623: Remove unused imports (#94132) | Victor Stinner | 2022-06-22 | 1 | -1/+1 |
| | |||||
* | gh-86388 Remove deprecated behaviors in randrange() (#92677) | Raymond Hettinger | 2022-05-12 | 1 | -43/+10 |
| | |||||
* | bpo-46737: Add default arguments to random.gauss and normalvariate (GH-31360) | Zackery Spytz | 2022-02-15 | 1 | -2/+2 |
| | |||||
* | bpo-46624: Defer to 3.12: "Remove deprecated support for non-integer values" ↵ | Miro Hrončok | 2022-02-03 | 1 | -10/+42 |
| | | | | (GH-31098) | ||||
* | Move error test to the function that needs it. Improve error message. ↵ | Raymond Hettinger | 2021-12-10 | 1 | -7/+4 |
| | | | | (GH-30008) | ||||
* | bpo-42222: Remove deprecated support for non-integer values (GH-28983) | Raymond Hettinger | 2021-10-16 | 1 | -42/+10 |
| | |||||
* | bpo-45155: Apply new byteorder default values for int.to/from_bytes (GH-28465) | Raymond Hettinger | 2021-09-20 | 1 | -3/+3 |
| | |||||
* | bpo-40465: Remove random module features deprecated in 3.9 (GH-25874) | Raymond Hettinger | 2021-05-04 | 1 | -38/+12 |
| | |||||
* | bpo-44018: random.seed() no longer mutates its inputs (GH-25856) | Raymond Hettinger | 2021-05-03 | 1 | -2/+1 |
| | |||||
* | Improve the error message for choices(population, 10) (GH-25267) | Raymond Hettinger | 2021-04-20 | 1 | -1/+9 |
| | |||||
* | Reduce overhead on random timings (GH-24455) | Raymond Hettinger | 2021-02-05 | 1 | -1/+1 |
| | |||||
* | bpo-37319: Improve documentation, code and tests of randrange. (GH-19112) | Serhiy Storchaka | 2021-01-25 | 1 | -24/+20 |
| | |||||
* | bpo-42944 Fix Random.sample when counts is not None (GH-24235) | jonanifranco | 2021-01-18 | 1 | -1/+1 |
| | |||||
* | bpo-42931: randbytes missing from random.__all__ (GH-24219) | Setrak Balian | 2021-01-15 | 1 | -0/+1 |
| | |||||
* | No need to test "istep==1" twice. (GH-24064) | Raymond Hettinger | 2021-01-02 | 1 | -4/+2 |
| | |||||
* | bpo-42772: Step argument ignored when stop is None. (GH-24018) | Raymond Hettinger | 2021-01-02 | 1 | -1/+7 |
| | |||||
* | bpo-42222: Modernize integer test/conversion in randrange() (#23064) | Raymond Hettinger | 2020-12-28 | 1 | -11/+43 |
| | |||||
* | bpo-42470: Do not warn on sequences which are also sets in random.sample() ↵ | masklinn | 2020-12-19 | 1 | -6/+7 |
| | | | | (GH-23665) | ||||
* | bpo-41773: Raise exception for non-finite weights in random.choices(). ↵ | Ram Rachum | 2020-09-29 | 1 | -1/+3 |
| | | | | (GH-22441) | ||||
* | random module: Convert a "while 1" to "while True (GH-21700) | Raymond Hettinger | 2020-08-02 | 1 | -1/+1 |
| | |||||
* | bpo-41421: Algebraic simplification for random.paretovariate() (GH-21695) | Raymond Hettinger | 2020-08-01 | 1 | -1/+1 |
| | |||||
* | Improve code organization for the random module (GH-21161) | Raymond Hettinger | 2020-06-26 | 1 | -177/+176 |
| | |||||
* | Small clean-ups for the random module (GH-21038) | Raymond Hettinger | 2020-06-23 | 1 | -30/+27 |
| | |||||
* | Minor code clean-ups (GH-20838) | Raymond Hettinger | 2020-06-13 | 1 | -89/+110 |
| | |||||
* | bpo-40541: Add optional *counts* parameter to random.sample() (GH-19970) | Raymond Hettinger | 2020-05-08 | 1 | -5/+29 |
| | |||||
* | bpo-40465: Deprecate the optional argument to random.shuffle(). (#19867) | Raymond Hettinger | 2020-05-02 | 1 | -0/+4 |
| | |||||
* | Simplify choice()'s interaction with the private _randbelow() method (GH-19831) | Raymond Hettinger | 2020-05-01 | 1 | -9/+5 |
| | |||||
* | bpo-40286: Remove C implementation of Random.randbytes() (GH-19797) | Victor Stinner | 2020-04-29 | 1 | -0/+6 |
| | | | | | Remove _random.Random.randbytes(): the C implementation of randbytes(). Implement the method in Python to ease subclassing: randbytes() now directly reuses getrandbits(). | ||||
* | bpo-40325: Deprecate set object support in random.sample() (GH-19591) | Raymond Hettinger | 2020-04-19 | 1 | -1/+4 |
| | |||||
* | bpo-40282: Allow random.getrandbits(0) (GH-19539) | Antoine Pitrou | 2020-04-17 | 1 | -2/+4 |
| | |||||
* | bpo-40286: Add randbytes() method to random.Random (GH-19527) | Victor Stinner | 2020-04-17 | 1 | -0/+7 |
| | | | | | | | | | | | | Add random.randbytes() function and random.Random.randbytes() method to generate random bytes. Modify secrets.token_bytes() to use SystemRandom.randbytes() rather than calling directly os.urandom(). Rename also genrand_int32() to genrand_uint32(), since it returns an unsigned 32-bit integer, not a signed integer. The _random module is now built with Py_BUILD_CORE_MODULE defined. | ||||
* | bpo-38881: choices() raises ValueError when all weights are zero (GH-17362) | Raymond Hettinger | 2019-11-23 | 1 | -1/+3 |
| | |||||
* | bpo-32554: Deprecate hashing arbitrary types in random.seed() (GH-15382) | Raymond Hettinger | 2019-08-22 | 1 | -2/+13 |
| | |||||
* | bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700) | Serhiy Storchaka | 2019-06-01 | 1 | -1/+1 |
| |