summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_random.py
Commit message (Collapse)AuthorAgeFilesLines
* mergeRaymond Hettinger2016-11-211-1/+1
|\
| * Issue #28743: Reduce memory consumption for random module testsRaymond Hettinger2016-11-211-1/+1
| |
* | mergeRaymond Hettinger2016-11-211-0/+1
|\ \ | |/
| * Issue 28475: Improve error message for random.sample() with k < 0. ↵Raymond Hettinger2016-11-211-0/+1
| | | | | | | | (Contributed by Francisco Couzo).
* | mergeRaymond Hettinger2016-11-131-1/+1
|\ \ | |/
| * Fix typosRaymond Hettinger2016-11-131-1/+1
| |
* | mergeRaymond Hettinger2016-10-301-0/+17
|\ \ | |/
| * Issue #18844: Strengthen tests to include a case with unequal weightingRaymond Hettinger2016-10-301-0/+17
| |
* | mergeRaymond Hettinger2016-10-291-0/+16
|\ \ | |/
| * Issue #18844: Make the various ways for specifing weights produce the same ↵Raymond Hettinger2016-10-291-0/+16
| | | | | | | | results.
* | Close #28476: Reuse math.factorial() in test_randomVictor Stinner2016-10-191-5/+1
|/ | | | Patch written by Francisco Couzo.
* Issue #18844: Add more testsRaymond Hettinger2016-10-141-0/+14
|
* Issue #18844: Fix-up examples for random.choices(). Remove over-specified ↵Raymond Hettinger2016-10-121-4/+0
| | | | test.
* Issue #18844: Make the number of selections a keyword-only argument for ↵Raymond Hettinger2016-09-271-21/+21
| | | | random.choices().
* Rename weighted_choices() to just choices()Raymond Hettinger2016-09-071-27/+27
|
* Issue #18844: Add random.weighted_choices()Raymond Hettinger2016-09-071-0/+68
|
* Issue #27706: Fix regression in random.seed(somestr, version=1)Raymond Hettinger2016-08-311-0/+18
|
* Issue #27171: Fix typos in documentation, comments, and test function namesMartin Panter2016-06-021-1/+1
|
* Issue #24620: Random.setstate() now validates the value of state last element.Serhiy Storchaka2015-07-241-0/+5
|
* Issue #22777: Test pickling with all protocols.Serhiy Storchaka2014-12-151-6/+8
|
* Issue 13355: Make random.triangular degrade gracefully when low == high.Raymond Hettinger2014-05-261-1/+1
|
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-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 whichSerhiy Storchaka2014-01-161-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.3Zachary Ware2013-11-261-6/+6
|\ \ | |/
| * Issue #19588: Fixed tests in test_random that were silently skipped mostZachary Ware2013-11-261-6/+6
| | | | | | | | of the time. Patch by Julian Gindi.
* | #17789: merge with 3.3.Ezio Melotti2013-04-191-27/+12
|\ \ | |/
| * #17789: test_random now works with unittest test discovery. Patch by ↵Ezio Melotti2013-04-191-27/+12
| | | | | | | | Zachary Ware.
* | Revert changes for #13355 by request from Raymond HettingerAndrew Svetlov2013-04-131-28/+1
|\ \ | |/
| * Revert changes for #13355 by request from Raymond HettingerAndrew Svetlov2013-04-131-31/+1
| |
* | Fix whitespacesAndrew Svetlov2013-04-121-1/+1
|\ \ | |/
| * Fix whitespacesAndrew Svetlov2013-04-121-1/+1
| |
* | Issue #13355: Raise ValueError on random.triangular call with invalid params.Andrew Svetlov2013-04-121-2/+28
|\ \ | |/ | | | | Initial patch by Yuriy Senko.
| * Issue #13355: Raise ValueError on random.triangular call with invalid params.Andrew Svetlov2013-04-121-1/+31
| | | | | | | | Initial patch by Yuriy Senko.
* | #17492: Additional tests for random module.R David Murray2013-04-021-0/+175
| | | | | | | | Patch by Victor Terrón.
* | Issue #17141: random.vonmisesvariate() no more hangs for large kappas.Serhiy Storchaka2013-02-101-2/+32
|\ \ | |/
| * Issue #17141: random.vonmisesvariate() no more hangs for large kappas.Serhiy Storchaka2013-02-101-2/+32
| |\
| | * Issue #17141: random.vonmisesvariate() no more hangs for large kappas.Serhiy Storchaka2013-02-101-2/+32
| | |
* | | Issue #17149: merge fix from 3.3.Mark Dickinson2013-02-101-0/+14
|\ \ \ | |/ /
| * | Issue #17149: merge fix from 3.2.Mark Dickinson2013-02-101-0/+14
| |\ \ | | |/
| | * Issue #17149: Fix random.vonmisesvariate to always return results in [0, ↵Mark Dickinson2013-02-101-0/+14
| | | | | | | | | | | | 2*math.pi].
* | | Issue #15837: add some tests for random.shuffle().Antoine Pitrou2012-11-041-0/+33
|/ / | | | | | | Patch by Alessandro Moura.
* | In random's test_seedargs: Make sure to include at least one seed object ↵Mark Dickinson2012-06-241-1/+5
|/ | | | with a negative hash.
* Update whatsnew. Salt the random number seed.Raymond Hettinger2010-12-081-2/+2
|
* Remove invalid test (it was supposed to fail on 64-bit machines.).Raymond Hettinger2010-09-071-4/+0
|
* Fix corner case for Random.choice() and add tests.Raymond Hettinger2010-09-071-0/+7
|
* Issues #7889, #9025 and #9379: Improvements to the random module.Raymond Hettinger2010-09-071-1/+9
|
* Document which part of the random module module are guaranteed.Raymond Hettinger2010-09-071-1/+16
|
* Merged revisions 78093 via svnmerge fromGeorg Brandl2010-03-141-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 -> python3Benjamin Peterson2010-03-111-1/+1
|
* use assert[Not]In where appropriateBenjamin Peterson2010-01-191-2/+2
| | | | A patch from Dave Malcolm.