Serhiy Storchaka
6c22b1d760
Issue #17141 : random.vonmisesvariate() no more hangs for large kappas.
2013-02-10 19:28:56 +02:00
Mark Dickinson
be5f91957f
Issue #17149 : Fix random.vonmisesvariate to always return results in [0, 2*math.pi].
2013-02-10 14:16:10 +00:00
Sandro Tosi
29d09aa4dd
Issue #14926 : fix docstring highlight
2012-06-02 19:40:02 +02:00
Brian Curtin
675f6b87cd
Fix #13384 . Remove __future__ import in 3.x code.
2011-11-11 09:37:25 -06:00
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