Commit Graph

113 Commits

Author SHA1 Message Date
Raymond Hettinger
5279fb99cb Code simplification suggested by Sven Marnach. 2011-06-25 11:30:53 +02:00
Raymond Hettinger
102d874999 Sync-up minor code edits with the default branch. 2011-05-05 11:49:12 -07:00
Raymond Hettinger
f90ba8a9a2 Avoid codec spelling issues by just using the utf-8 default. 2011-05-05 11:35:50 -07:00
Ezio Melotti
82b0d5d144 #11848: Merge with 3.1. 2011-04-15 08:27:00 +03:00
Ezio Melotti
20f53f1fe7 #11848: replace dead link in random.betavariate comment. 2011-04-15 08:25:16 +03:00
Raymond Hettinger
27f870982f Issue 10787: Document the probability density function for random.gammavariate. 2011-03-22 15:56:41 -07:00
Raymond Hettinger
a8e4d6eb6e Issue 10787: Document the probability density function for random.gammavariate. 2011-03-22 15:55:51 -07:00
Raymond Hettinger
3fcf002994 Update whatsnew. Salt the random number seed. 2010-12-08 01:13:53 +00:00
Raymond Hettinger
63b17671f0 Improve variable name (don't shadow a builtin). 2010-09-08 19:27:59 +00:00
Raymond Hettinger
8ff1099684 One more conversion from pow() to **. 2010-09-08 18:58:33 +00:00
Raymond Hettinger
183cd1fae3 * Remove dependency on binascii.hexlify by using int.from_bytes().
* Use the new super() with no arguments.
* Replace pow() call with the ** operator.
* Increase urandom seeding from 16 bytes to 32 bytes.
* Clean-up docstring.
2010-09-08 18:48:21 +00:00
Raymond Hettinger
e4a3e99973 In the case where only a user supplied random() method is available,
adopt a strategy that makes the fewest calls to random().
2010-09-08 00:30:28 +00:00
Raymond Hettinger
f015b3f5f6 Neaten-up comments and warning message. 2010-09-07 20:04:42 +00:00
Raymond Hettinger
05a505f106 Minor refactoring and cleanup. Extend looping randrange() technique to subclasses. 2010-09-07 19:19:33 +00:00
Raymond Hettinger
c585eecfb0 Fix test that depends on a particular implementation of random.choice(). 2010-09-07 15:00:15 +00:00
Raymond Hettinger
dc4872eefe Fix corner case for Random.choice() and add tests. 2010-09-07 10:06:56 +00:00
Raymond Hettinger
c324697bac Small clean-ups. 2010-09-07 09:32:57 +00:00
Raymond Hettinger
0515661314 Issues #7889, #9025 and #9379: Improvements to the random module. 2010-09-07 04:44:52 +00:00
Raymond Hettinger
3051cc3a0d Minor code cleanup 2010-09-07 00:48:40 +00:00
Raymond Hettinger
f763a728ad Document which part of the random module module are guaranteed. 2010-09-07 00:38:15 +00:00
Mark Dickinson
884924a2fd Issue #7435: Remove reference to long in docstring. Thanks flox. 2009-12-05 20:32:49 +00:00
Mark Dickinson
5c2db37c20 Issue #7435: Remove duplicate int/long tests, and other
references to long in py3k.  Patch provided by flox.
2009-12-05 20:28:34 +00:00
Raymond Hettinger
be40db07c6 Issue 6261: Clarify behavior of random.uniform(). 2009-06-11 23:12:14 +00:00
Raymond Hettinger
886687dcda Use ABCs to validate documented restriction to Sets or Sequences. 2009-02-24 11:27:15 +00:00
Mark Dickinson
2f947369b3 Merged revisions 68378 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68378 | mark.dickinson | 2009-01-07 17:48:33 +0000 (Wed, 07 Jan 2009) | 2 lines

  Issue #4869: clarify documentation for random.expovariate.
........
2009-01-07 17:54:07 +00:00