summaryrefslogtreecommitdiff
path: root/Lib/random.py
AgeCommit message (Expand)AuthorLines
2009-06-11Issue 6261: Clarify behavior of random.uniform().Raymond Hettinger-1/+1
2009-02-24Use ABCs to validate documented restriction to Sets or Sequences.Raymond Hettinger-3/+4
2009-01-07Merged revisions 68378 via svnmerge fromMark Dickinson-3/+5
2008-07-31Merged revisions 65259,65263,65296,65307,65321 via svnmerge fromBenjamin Peterson-1/+1
2008-03-23Merged revisions 61724-61725,61731-61735,61737,61739,61741,61743-61744,61753,...Christian Heimes-1/+24
2008-01-14Take Tim's advice and have random.sample() support only sequences and sets.Raymond Hettinger-27/+16
2008-01-13Remove defunct parts of the random moduleRaymond Hettinger-162/+4
2007-12-03Merged revisions 59275-59303 via svnmerge fromChristian Heimes-2/+13
2007-08-30Raise statement normalization in Lib/.Collin Winter-9/+9
2007-06-13Merged revisions 55817-55961 via svnmerge fromGuido van Rossum-3/+3
2007-05-07Merged revisions 55007-55179 via svnmerge fromGuido van Rossum-5/+5
2007-05-03Fix various spots where int/long and str/unicode unificationWalter Dörwald-1/+1
2007-02-09Fix most trivially-findable print statements.Guido van Rossum-4/+4
2007-02-01Merged revisions 53451-53537 via svnmerge fromThomas Wouters-1/+1
2007-01-15Rip out 'long' and 'L'-suffixed integer literals.Guido van Rossum-10/+10
2007-01-09Merged revisions 53005-53303 via svnmerge fromThomas Wouters-1/+1
2006-08-11Merged revisions 46753-51188 via svnmerge fromThomas Wouters-12/+6
2006-04-21Merge p3yk branch with the trunk up to revision 45595. This breaks a fairThomas Wouters-11/+23
2005-08-26Whitespace normalization (via reindent.py).Tim Peters-1/+1
2005-08-19Implement random.sample() using sets instead of dicts.Raymond Hettinger-9/+13
2005-04-30SF patch #1191489: Simplify logic in random.pyRaymond Hettinger-9/+10
2005-01-03Removed unused line.Raymond Hettinger-1/+0
2004-09-27Use floor division operator.Raymond Hettinger-2/+2
2004-09-13SF #1027105: HardwareRandom should be renamed OSRandomRaymond Hettinger-11/+13
2004-09-05Fulfill Martin's request to use try/except rather than a "look beforeRaymond Hettinger-17/+8
2004-09-03SF bug #1022010: Import random failsRaymond Hettinger-1/+2
2004-08-31HardwareRandom: Go back to multiplying by 2**-BPF instead of usingTim Peters-2/+3
2004-08-31Take advantage of the math library's ldexp for assembling a float byRaymond Hettinger-5/+3
2004-08-30Teach the random module about os.urandom().Raymond Hettinger-8/+62
2004-06-07Fix typo in comment.Raymond Hettinger-1/+1
2004-06-05SF bug #964230: random.choice([]) should return more intelligible exceptionRaymond Hettinger-1/+1
2004-02-23Reflow long line.Jeremy Hylton-6/+6
2004-01-18Whitespace normalization.Tim Peters-1/+1
2003-11-06Implement and apply PEP 322, reverse iterationRaymond Hettinger-1/+1
2003-10-12Minor fixup. "Random" was listed twice in __all__.Raymond Hettinger-2/+1
2003-10-05SF bug #812202: randint is always evenRaymond Hettinger-10/+54
2003-09-06SF bug #801342: Bug (documentation or real, your choice) in random.sample.Raymond Hettinger-0/+4
2003-08-30Eliminate unnecessary eval() in testsRaymond Hettinger-19/+18
2003-08-09SF bug #778964: bad seed in python 2.3 randomRaymond Hettinger-0/+3
2003-08-05Removed deprecated functionsRaymond Hettinger-49/+2
2003-06-24SF bug #759889: Pickling of Random is brokenRaymond Hettinger-0/+3
2003-06-19randrange(): Repaired my overly optimistic rewrite, and added commentsTim Peters-1/+13
2003-06-19randrange(): 2.3 can no longer raises OverflowError on an int() call, soTim Peters-10/+1
2003-06-13SF bug #753602: random.sample not properly documentedRaymond Hettinger-4/+5
2003-05-24'sum' is no longer a good variable name. Use 'total' instead.Raymond Hettinger-3/+3
2003-01-17* Migrate sample distribution test from random.py to test_random.py.Raymond Hettinger-5/+0
2003-01-07Much clearer when super() is used.Raymond Hettinger-5/+5
2003-01-05Move the statistical tests for four distributions into the unittest suite.Raymond Hettinger-3/+0
2003-01-04Correct long standing bugs in the methods for random distributions.Raymond Hettinger-4/+6
2003-01-04Remove the random=None nonsense from sample() before it gets set in stone.Raymond Hettinger-18/+11