Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Teach the random module about os.urandom(). | Raymond Hettinger | 2004-08-30 | 1 | -2/+16 |
| | | | | | * Use it for seeding when it is available. * Provide an alternate generator based on it. | ||||
* | SF bug #812202: randint is always even | Raymond Hettinger | 2003-10-05 | 1 | -0/+12 |
| | | | | | | | * Added C coded getrandbits(k) method that runs in linear time. * Call the new method from randrange() for ranges >= 2**53. * Adds a warning for generators not defining getrandbits() whenever they have a call to randrange() with too large of a population. | ||||
* | Removed deprecated functions | Raymond Hettinger | 2003-08-05 | 1 | -12/+0 |
| | |||||
* | SF patch 658251: Install a C implementation of the Mersenne Twister as the | Raymond Hettinger | 2002-12-29 | 1 | -83/+55 |
| | | | | core generator for random.py. | ||||
* | Improve comments. Clarify docs. | Raymond Hettinger | 2002-11-18 | 1 | -11/+12 |
| | | | | | Replace "type(0)" with "int". Replace "while 1" with "while True" | ||||
* | SF patch 629637: Add sample(population, k) method to the random module. | Raymond Hettinger | 2002-11-12 | 1 | -0/+19 |
| | | | | Used for random sampling without replacement. | ||||
* | Markup adjustments; fix the names of modules referenced in an expression. | Fred Drake | 2002-05-23 | 1 | -2/+2 |
| | |||||
* | Deprecated Random.cunifvariate clearing bug 506647. Also, added docstrings. | Raymond Hettinger | 2002-05-23 | 1 | -1/+4 |
| | |||||
* | Closes SF bug 527139. Brings docs inline with random.py 1.29 | Raymond Hettinger | 2002-05-13 | 1 | -1/+1 |
| | | | | which fixes the unnecessarily restricted method domain. | ||||
* | Correct gammavariate's method name and domain. | Raymond Hettinger | 2002-05-13 | 1 | -2/+2 |
| | | | | Partial solution to SF bug 527139. | ||||
* | BDFL agreed with Tim: rehabilitate randint(). | Fred Drake | 2002-04-12 | 1 | -1/+0 |
| | |||||
* | Fix a number of minor markup errors. | Fred Drake | 2001-04-21 | 1 | -3/+3 |
| | |||||
* | Minor markup adjustments. | Fred Drake | 2001-02-02 | 1 | -22/+26 |
| | |||||
* | Fix some markup breakage that prevented formatting; re-wrapped a couple of | Fred Drake | 2001-02-01 | 1 | -10/+10 |
| | | | | wide paragraphs. | ||||
* | Change random.seed() so that it can get at the full range of possible | Tim Peters | 2001-02-01 | 1 | -14/+29 |
| | | | | | | | | internal states. Put the old .seed() (which could only get at about the square root of the # of possibilities) under the new name .whseed(), for bit-level compatibility with older versions. This occurred to me while reviewing effbot's book (he found himself stumbling over .seed() more than once there ...). | ||||
* | The combo of getstate/setstate/jumpahead is very powerful, but needs | Tim Peters | 2001-01-26 | 1 | -2/+48 |
| | | | | examples to flesh it out for the uninitiated. Here they are. | ||||
* | Fix bugs introduced by rewrite (in particular, time-based initialization | Tim Peters | 2001-01-25 | 1 | -8/+19 |
| | | | | | | | got broken). Also added new method .jumpahead(N). This finally gives us a semi-decent answer to how Python's RNGs can be used safely and efficiently in multithreaded programs (although it requires the user to use the new machinery!). | ||||
* | Reworked random.py so that it no longer depends on, and offers all the | Tim Peters | 2001-01-25 | 1 | -31/+55 |
| | | | | | | | | | | | functionality of, whrandom.py. Also closes all the "XXX" todos in random.py. New frequently-requested functions/methods getstate() and setstate(). All exported functions are now bound methods of a hidden instance. Killed all unintended exports. Updated the docs. FRED: The more I fiddle the docs, the less I understand the exact intended use of the \var, \code, \method tags. Please review critically. GUIDO: See email. I updated NEWS as if whrandom were deprecated; I think it should be. | ||||
* | A \begin{funcdesc} was closed with an \end{methoddesc}. | Barry Warsaw | 2001-01-25 | 1 | -1/+1 |
| | |||||
* | Supply long-missing docs for random.seed(). Extensive rewrite of module | Tim Peters | 2001-01-24 | 1 | -21/+52 |
| | | | | | | intro docs. *************** Fred: check my LaTeX! Also, the docs for whrandom should *************** be moved into Obsolete Modules. | ||||
* | Clean up the docs for the "random" module according to comments from Tim | Fred Drake | 2001-01-22 | 1 | -90/+71 |
| | | | | | | Peters. This closes SF bug #125919. | ||||
* | Added documentation for random.shuffle(). | Fred Drake | 2000-12-15 | 1 | -0/+17 |
| | |||||
* | Document randrange(). | Fred Drake | 2000-06-30 | 1 | -0/+8 |
| | |||||
* | Merged changes from the 1.5.2p2 release. | Fred Drake | 2000-04-03 | 1 | -16/+54 |
| | | | | (Very rough.) | ||||
* | Make references to whrandom hyperlinks. | Fred Drake | 1999-04-21 | 1 | -10/+10 |
| | |||||
* | New section header style. | Fred Drake | 1998-08-10 | 1 | -2/+4 |
| | | | | Fix up a few synopses. | ||||
* | Adjusted to use the new module synopsis support macros. | Fred Drake | 1998-07-23 | 1 | -2/+4 |
| | |||||
* | Fix vonmisesvariate() -- it now returns an angle between 0 and *two* | Guido van Rossum | 1998-04-20 | 1 | -4/+4 |
| | | | | times pi. Got rid of $math$ here and in one other place. | ||||
* | Remove all uses of \sectcode; we can now use logical markup everywhere. | Fred Drake | 1998-04-04 | 1 | -1/+1 |
| | |||||
* | Remove obsolete lines like this: | Fred Drake | 1998-04-04 | 1 | -1/+0 |
| | | | | | | | | \setindexsubitem{(in module frobnitz)} These are no longer needed when present before any other \setindexsubitem{} in the module section. The indexsubitem is now set by \bimodindex and \stmodindex. | ||||
* | Consistency nits: | Fred Drake | 1998-04-03 | 1 | -3/+3 |
| | | | | | | Use math-mode pi instead of mixing forms. Use spaces around relational operators. | ||||
* | Markup adjustments. | Fred Drake | 1998-03-08 | 1 | -23/+25 |
| | |||||
* | Remove all \bcode / \ecode cruft; this is no longer needed. See previous | Fred Drake | 1998-02-13 | 1 | -1/+1 |
| | | | | | | | | | checkin of myformat.sty. Change "\renewcommand{\indexsubitem}{(...)}" to "\setindexsubitem{(...)}" everywhere. Some other minor nits that I happened to come across. | ||||
* | Added "docs" for Pareto and Weibull distributions. | Guido van Rossum | 1997-12-30 | 1 | -0/+8 |
| | |||||
* | AMK's megapatch: | Guido van Rossum | 1997-07-17 | 1 | -0/+6 |
| | | | | | | | * \bcode, \ecode added everywhere * \label{module-foo} added everywhere * A few \seealso sections added. * Indentation fixed inside verbatim in lib*tex files | ||||
* | New stuff by AMK. | Guido van Rossum | 1997-04-03 | 1 | -0/+71 |