Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [3.6] bpo-31478: Fix an assertion failure in random.seed() in case a seed ↵ | Serhiy Storchaka | 2017-09-28 | 1 | -0/+11 |
| | | | | | has a bad __abs__() method. (GH-3596) (#3794) (cherry picked from commit d780b2d588e68bd7047ef5d1f04e36da38b7a350) | ||||
* | [3.6] bpo-31482: Missing bytes support for random.seed() version 1 ↵ | Miss Islington (bot) | 2017-09-19 | 1 | -0/+27 |
| | | | | | (GH-3614) (GH-3659) (cherry picked from commit 132a7d7cdbc7cb89fa1c1f4e8192241c3d68f549) | ||||
* | [3.6] bpo-29960 _random.Random corrupted on exception in setstate(). … (#1287) | Mariatta | 2017-05-27 | 1 | -0/+5 |
| | | | (cherry picked from commit 9616a82e7802241a4b74cf7ae38d43c37bf66e48) | ||||
* | Issue #28743: Reduce memory consumption for random module tests | Raymond Hettinger | 2016-11-21 | 1 | -1/+1 |
| | |||||
* | Issue 28475: Improve error message for random.sample() with k < 0. ↵ | Raymond Hettinger | 2016-11-21 | 1 | -0/+1 |
| | | | | (Contributed by Francisco Couzo). | ||||
* | Fix typos | Raymond Hettinger | 2016-11-13 | 1 | -1/+1 |
| | |||||
* | Issue #18844: Strengthen tests to include a case with unequal weighting | Raymond Hettinger | 2016-10-30 | 1 | -0/+17 |
| | |||||
* | Issue #18844: Make the various ways for specifing weights produce the same ↵ | Raymond Hettinger | 2016-10-29 | 1 | -0/+16 |
| | | | | results. | ||||
* | Issue #18844: Add more tests | Raymond Hettinger | 2016-10-14 | 1 | -0/+14 |
| | |||||
* | Issue #18844: Fix-up examples for random.choices(). Remove over-specified ↵ | Raymond Hettinger | 2016-10-12 | 1 | -4/+0 |
| | | | | test. | ||||
* | Issue #18844: Make the number of selections a keyword-only argument for ↵ | Raymond Hettinger | 2016-09-27 | 1 | -21/+21 |
| | | | | random.choices(). | ||||
* | Rename weighted_choices() to just choices() | Raymond Hettinger | 2016-09-07 | 1 | -27/+27 |
| | |||||
* | Issue #18844: Add random.weighted_choices() | Raymond Hettinger | 2016-09-07 | 1 | -0/+68 |
| | |||||
* | Issue #27706: Fix regression in random.seed(somestr, version=1) | Raymond Hettinger | 2016-08-31 | 1 | -0/+18 |
| | |||||
* | Issue #27171: Fix typos in documentation, comments, and test function names | Martin Panter | 2016-06-02 | 1 | -1/+1 |
| | |||||
* | Issue #24620: Random.setstate() now validates the value of state last element. | Serhiy Storchaka | 2015-07-24 | 1 | -0/+5 |
| | |||||
* | Issue #22777: Test pickling with all protocols. | Serhiy Storchaka | 2014-12-15 | 1 | -6/+8 |
| | |||||
* | Issue 13355: Make random.triangular degrade gracefully when low == high. | Raymond Hettinger | 2014-05-26 | 1 | -1/+1 |
| | |||||
* | Issue #19936: Added executable bits or shebang lines to Python scripts which | Serhiy Storchaka | 2014-01-16 | 1 | -2/+0 |
|\ | | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang lines in the unittestgui and checkpip scripts. | ||||
| * | Issue #19936: Added executable bits or shebang lines to Python scripts which | Serhiy Storchaka | 2014-01-16 | 1 | -2/+0 |
| | | | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang line to use python3 executable in the unittestgui script. | ||||
* | | Issue #19588: Merge with 3.3 | Zachary Ware | 2013-11-26 | 1 | -6/+6 |
|\ \ | |/ | |||||
| * | Issue #19588: Fixed tests in test_random that were silently skipped most | Zachary Ware | 2013-11-26 | 1 | -6/+6 |
| | | | | | | | | of the time. Patch by Julian Gindi. | ||||
* | | #17789: merge with 3.3. | Ezio Melotti | 2013-04-19 | 1 | -27/+12 |
|\ \ | |/ | |||||
| * | #17789: test_random now works with unittest test discovery. Patch by ↵ | Ezio Melotti | 2013-04-19 | 1 | -27/+12 |
| | | | | | | | | Zachary Ware. | ||||
* | | Revert changes for #13355 by request from Raymond Hettinger | Andrew Svetlov | 2013-04-13 | 1 | -28/+1 |
|\ \ | |/ | |||||
| * | Revert changes for #13355 by request from Raymond Hettinger | Andrew Svetlov | 2013-04-13 | 1 | -31/+1 |
| | | |||||
* | | Fix whitespaces | Andrew Svetlov | 2013-04-12 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Fix whitespaces | Andrew Svetlov | 2013-04-12 | 1 | -1/+1 |
| | | |||||
* | | Issue #13355: Raise ValueError on random.triangular call with invalid params. | Andrew Svetlov | 2013-04-12 | 1 | -2/+28 |
|\ \ | |/ | | | | | Initial patch by Yuriy Senko. | ||||
| * | Issue #13355: Raise ValueError on random.triangular call with invalid params. | Andrew Svetlov | 2013-04-12 | 1 | -1/+31 |
| | | | | | | | | Initial patch by Yuriy Senko. | ||||
* | | #17492: Additional tests for random module. | R David Murray | 2013-04-02 | 1 | -0/+175 |
| | | | | | | | | Patch by Victor Terrón. | ||||
* | | Issue #17141: random.vonmisesvariate() no more hangs for large kappas. | Serhiy Storchaka | 2013-02-10 | 1 | -2/+32 |
|\ \ | |/ | |||||
| * | Issue #17141: random.vonmisesvariate() no more hangs for large kappas. | Serhiy Storchaka | 2013-02-10 | 1 | -2/+32 |
| |\ | |||||
| | * | Issue #17141: random.vonmisesvariate() no more hangs for large kappas. | Serhiy Storchaka | 2013-02-10 | 1 | -2/+32 |
| | | | |||||
* | | | Issue #17149: merge fix from 3.3. | Mark Dickinson | 2013-02-10 | 1 | -0/+14 |
|\ \ \ | |/ / | |||||
| * | | Issue #17149: merge fix from 3.2. | Mark Dickinson | 2013-02-10 | 1 | -0/+14 |
| |\ \ | | |/ | |||||
| | * | Issue #17149: Fix random.vonmisesvariate to always return results in [0, ↵ | Mark Dickinson | 2013-02-10 | 1 | -0/+14 |
| | | | | | | | | | | | | 2*math.pi]. | ||||
* | | | Issue #15837: add some tests for random.shuffle(). | Antoine Pitrou | 2012-11-04 | 1 | -0/+33 |
|/ / | | | | | | | Patch by Alessandro Moura. | ||||
* | | In random's test_seedargs: Make sure to include at least one seed object ↵ | Mark Dickinson | 2012-06-24 | 1 | -1/+5 |
|/ | | | | with a negative hash. | ||||
* | Update whatsnew. Salt the random number seed. | Raymond Hettinger | 2010-12-08 | 1 | -2/+2 |
| | |||||
* | Remove invalid test (it was supposed to fail on 64-bit machines.). | Raymond Hettinger | 2010-09-07 | 1 | -4/+0 |
| | |||||
* | Fix corner case for Random.choice() and add tests. | Raymond Hettinger | 2010-09-07 | 1 | -0/+7 |
| | |||||
* | Issues #7889, #9025 and #9379: Improvements to the random module. | Raymond Hettinger | 2010-09-07 | 1 | -1/+9 |
| | |||||
* | Document which part of the random module module are guaranteed. | Raymond Hettinger | 2010-09-07 | 1 | -1/+16 |
| | |||||
* | Merged revisions 78093 via svnmerge from | Georg Brandl | 2010-03-14 | 1 | -1/+1 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78093 | georg.brandl | 2010-02-07 18:03:15 +0100 (So, 07 Feb 2010) | 1 line Remove unused imports in test modules. ........ | ||||
* | convert shebang lines: python -> python3 | Benjamin Peterson | 2010-03-11 | 1 | -1/+1 |
| | |||||
* | use assert[Not]In where appropriate | Benjamin Peterson | 2010-01-19 | 1 | -2/+2 |
| | | | | A patch from Dave Malcolm. | ||||
* | convert old fail* assertions to assert* | Benjamin Peterson | 2009-06-30 | 1 | -15/+15 |
| | |||||
* | Inline coefficients in gamma(). Add reflection formula. Add comments. | Raymond Hettinger | 2009-02-19 | 1 | -10/+18 |
| | |||||
* | Merged revisions 65258,65292,65299,65308-65309,65315,65326 via svnmerge from | Mark Dickinson | 2008-08-01 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r65258 | mark.dickinson | 2008-07-27 08:15:29 +0100 (Sun, 27 Jul 2008) | 4 lines Remove math.sum tests related to overflow, special values, and behaviour near the extremes of the floating-point range. (The behaviour of math.sum should be regarded as undefined in these cases.) ........ r65292 | mark.dickinson | 2008-07-29 19:45:38 +0100 (Tue, 29 Jul 2008) | 4 lines More modifications to tests for math.sum: replace the Python version of msum by a version using a different algorithm, and use the new float.fromhex method to specify test results exactly. ........ r65299 | mark.dickinson | 2008-07-30 13:01:41 +0100 (Wed, 30 Jul 2008) | 5 lines Fix special-value handling for math.sum. Also minor cleanups to the code: fix tabbing, remove trailing whitespace, and reformat to fit into 80 columns. ........ r65308 | mark.dickinson | 2008-07-30 17:20:10 +0100 (Wed, 30 Jul 2008) | 2 lines Rename math.sum to math.fsum ........ r65309 | mark.dickinson | 2008-07-30 17:25:16 +0100 (Wed, 30 Jul 2008) | 3 lines Replace math.sum with math.fsum in a couple of comments that were missed by r65308 ........ r65315 | mark.dickinson | 2008-07-30 21:23:15 +0100 (Wed, 30 Jul 2008) | 2 lines Add note about problems with math.fsum on x86 hardware. ........ r65326 | mark.dickinson | 2008-07-31 15:48:32 +0100 (Thu, 31 Jul 2008) | 2 lines Rename testSum to testFsum and move it to proper place in test_math.py ........ |