summaryrefslogtreecommitdiffstats
path: root/Doc/lib/librandom.tex
Commit message (Collapse)AuthorAgeFilesLines
* SF# 1635892: Fix docs for betavariate's input parameters .Raymond Hettinger2007-01-191-1/+1
|
* Add punctuation mark; add some examplesAndrew M. Kuchling2006-07-271-1/+25
|
* George Yoshida's fix.Neal Norwitz2006-02-221-1/+1
|
* At Brian Wichmann's request, added words warning againstTim Peters2006-02-211-4/+13
| | | | | | | | | | | | using the old Wichmann-Hill generator, Also pointed to a newer version of his generator, and weakened the claim about what jumpahead() does now. Note sure I got the LaTeX entirely correct for \seeurl. If it's broken, please fix it ;-) Bugfix candidate! (These changes make just as much sense for 2.4.)
* Trimmed trailing whitespace.Tim Peters2006-02-211-4/+4
|
* Remove dots in \version{changed,added} argument andGeorg Brandl2006-01-151-1/+1
| | | | correct argument order.
* fix markup nitsFred Drake2005-07-201-4/+4
|
* SF bug #1033038: Misleading error message in random.choiceRaymond Hettinger2004-09-281-0/+1
| | | | Added a clarifying line to the docs.
* SF #1027105: HardwareRandom should be renamed OSRandomRaymond Hettinger2004-09-131-5/+7
| | | | | | Renamed the new generator at Trevor's recommendation. The name HardwareRandom suggested a bit more than it delivered (no radioactive decay detectors or such).
* Teach the random module about os.urandom().Raymond Hettinger2004-08-301-2/+16
| | | | | * Use it for seeding when it is available. * Provide an alternate generator based on it.
* SF bug #812202: randint is always evenRaymond Hettinger2003-10-051-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 functionsRaymond Hettinger2003-08-051-12/+0
|
* SF patch 658251: Install a C implementation of the Mersenne Twister as theRaymond Hettinger2002-12-291-83/+55
| | | | core generator for random.py.
* Improve comments. Clarify docs.Raymond Hettinger2002-11-181-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 Hettinger2002-11-121-0/+19
| | | | Used for random sampling without replacement.
* Markup adjustments; fix the names of modules referenced in an expression.Fred Drake2002-05-231-2/+2
|
* Deprecated Random.cunifvariate clearing bug 506647. Also, added docstrings.Raymond Hettinger2002-05-231-1/+4
|
* Closes SF bug 527139. Brings docs inline with random.py 1.29Raymond Hettinger2002-05-131-1/+1
| | | | which fixes the unnecessarily restricted method domain.
* Correct gammavariate's method name and domain.Raymond Hettinger2002-05-131-2/+2
| | | | Partial solution to SF bug 527139.
* BDFL agreed with Tim: rehabilitate randint().Fred Drake2002-04-121-1/+0
|
* Fix a number of minor markup errors.Fred Drake2001-04-211-3/+3
|
* Minor markup adjustments.Fred Drake2001-02-021-22/+26
|
* Fix some markup breakage that prevented formatting; re-wrapped a couple ofFred Drake2001-02-011-10/+10
| | | | wide paragraphs.
* Change random.seed() so that it can get at the full range of possibleTim Peters2001-02-011-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 needsTim Peters2001-01-261-2/+48
| | | | examples to flesh it out for the uninitiated. Here they are.
* Fix bugs introduced by rewrite (in particular, time-based initializationTim Peters2001-01-251-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 theTim Peters2001-01-251-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 Warsaw2001-01-251-1/+1
|
* Supply long-missing docs for random.seed(). Extensive rewrite of moduleTim Peters2001-01-241-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 TimFred Drake2001-01-221-90/+71
| | | | | | Peters. This closes SF bug #125919.
* Added documentation for random.shuffle().Fred Drake2000-12-151-0/+17
|
* Document randrange().Fred Drake2000-06-301-0/+8
|
* Merged changes from the 1.5.2p2 release.Fred Drake2000-04-031-16/+54
| | | | (Very rough.)
* Make references to whrandom hyperlinks.Fred Drake1999-04-211-10/+10
|
* New section header style.Fred Drake1998-08-101-2/+4
| | | | Fix up a few synopses.
* Adjusted to use the new module synopsis support macros.Fred Drake1998-07-231-2/+4
|
* Fix vonmisesvariate() -- it now returns an angle between 0 and *two*Guido van Rossum1998-04-201-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 Drake1998-04-041-1/+1
|
* Remove obsolete lines like this:Fred Drake1998-04-041-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 Drake1998-04-031-3/+3
| | | | | | Use math-mode pi instead of mixing forms. Use spaces around relational operators.
* Markup adjustments.Fred Drake1998-03-081-23/+25
|
* Remove all \bcode / \ecode cruft; this is no longer needed. See previousFred Drake1998-02-131-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 Rossum1997-12-301-0/+8
|
* AMK's megapatch:Guido van Rossum1997-07-171-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 Rossum1997-04-031-0/+71