summaryrefslogtreecommitdiffstats
path: root/Doc/library/random.rst
Commit message (Collapse)AuthorAgeFilesLines
* gh-104337: Clarify random.gammavariate doc entry (#104410)Terry Jan Reedy2023-05-141-3/+6
| | | | | * gh-104337: Clarify random.gammavariate doc entry * Fix parameter markup.
* Move binomialvariate() to a section for discrete distributions (GH-102955)Raymond Hettinger2023-03-231-3/+3
|
* GH-102653: Make recipe docstring show the correct distribution (#102742)Raymond Hettinger2023-03-161-1/+2
|
* GH-101097: Switch from standard interval notation to greater or less than ↵Andrew Hong2023-01-221-3/+3
| | | | signs for random.random()'s documentation (#101119)
* GH-100234: Set a default value for random.expovariate() (GH-100235)Raymond Hettinger2022-12-151-1/+4
|
* Move random selection recipes from itertools.rst to random.rst (GH-98369)Raymond Hettinger2022-10-171-0/+31
|
* gh-96959: Update more HTTP links (GH-97536)Serhiy Storchaka2022-09-271-2/+2
| | | | Use HTTPS for documents which are available by both HTTP and HTTPS links, but there is no redirection from HTTP to HTTPS or vice versa.
* gh-96959: Update HTTP links which are redirected to HTTPS (GH-96961)Serhiy Storchaka2022-09-241-2/+2
|
* fix various typos in random module's documentation (GH-96912)partev2022-09-181-4/+4
|
* gh-91838: Resolve HTTP links which redirect to HTTPS (GH-95642)Serhiy Storchaka2022-08-041-1/+1
| | | | It updates links which redirect to HTTPS with different authority or path.
* gh-91838: Use HTTPS links in docs for resources which redirect to HTTPS ↵Serhiy Storchaka2022-08-041-1/+1
| | | | | | | | | | (GH-95527) If an HTTP link is redirected to a same looking HTTPS link, the latter can be used directly without changes in readability and behavior. It protects from a men-in-the-middle attack. This change does not affect Python examples.
* GH-81620: Add random.binomialvariate() (GH-94719)Raymond Hettinger2022-07-131-6/+25
|
* gh-86388 Remove deprecated behaviors in randrange() (#92677)Raymond Hettinger2022-05-121-14/+13
|
* bpo-40465: Document random module changes in 3.11 What's new (#31818)Tomáš Hrnčiar2022-03-241-1/+1
|
* bpo-46737: Add default arguments to random.gauss and normalvariate (GH-31360)Zackery Spytz2022-02-151-2/+8
|
* bpo-46624: Defer to 3.12: "Remove deprecated support for non-integer values" ↵Miro Hrončok2022-02-031-4/+9
| | | | (GH-31098)
* Improve multiserver queue recipe (GH-29012)Raymond Hettinger2021-10-171-5/+6
|
* bpo-42222: Remove deprecated support for non-integer values (GH-28983)Raymond Hettinger2021-10-161-9/+4
|
* bpo-40465: Remove random module features deprecated in 3.9 (GH-25874)Raymond Hettinger2021-05-041-13/+9
|
* Doc: Fix random.uniform example comment. (GH-25784)Julien Palard2021-05-031-1/+1
|
* Document that random.gauss is normal distribution (GH-24935)Joonas Paalasmaa2021-04-201-3/+3
|
* bpo-37319: Improve documentation, code and tests of randrange. (GH-19112)Serhiy Storchaka2021-01-251-2/+3
|
* bpo-42222: Modernize integer test/conversion in randrange() (#23064)Raymond Hettinger2020-12-281-0/+9
|
* bpo-42559: Not that getrandbits() is non-negative. (GH-23843)Raymond Hettinger2020-12-191-4/+5
|
* bpo-39108: Document threading issues for random.gauss() (GH-22928)Raymond Hettinger2020-10-251-0/+7
|
* Minor clarification (GH-22708)Raymond Hettinger2020-10-151-3/+3
|
* Improve recipe readability (GH-22685)Raymond Hettinger2020-10-131-31/+37
|
* Add recipe for a version of random() with a larger population (GH-22664)Raymond Hettinger2020-10-131-2/+53
|
* bpo-41773: Raise exception for non-finite weights in random.choices(). ↵Ram Rachum2020-09-291-2/+2
| | | | (GH-22441)
* Revert "Fix all Python Cookbook links (#22205)" (GH-22424)Andre Delfino2020-09-271-1/+1
| | | This commit reverts commit ac0333e1e117b7f61ed7ef1dbcdb6e515ada603b as the original links are working again and they provide extended features such as comments and alternative versions.
* Fix all Python Cookbook links (#22205)Andre Delfino2020-09-151-1/+1
|
* Improve output summary in the examples and recipes section (GH-20285)Raymond Hettinger2020-05-211-3/+3
|
* bpo-40541: Add optional *counts* parameter to random.sample() (GH-19970)Raymond Hettinger2020-05-081-7/+14
|
* bpo-40286: Put methods in correct sections. Add security notice to use ↵Raymond Hettinger2020-05-051-10/+15
| | | | secrets for session tokens. (GH-19870)
* Fix missing space in docs(GH-19866)Mathieu Dupuy2020-05-021-1/+1
|
* bpo-40465: Deprecate the optional argument to random.shuffle(). (#19867)Raymond Hettinger2020-05-021-0/+3
|
* Small improvements to the recipes and examples. (GH-19635)Raymond Hettinger2020-04-211-30/+26
| | | | | * Add underscores to long numbers to improve readability * Use bigger dataset in the bootstrapping example * Convert single-server queue example to more useful multi-server queue
* bpo-40325: Deprecate set object support in random.sample() (GH-19591)Raymond Hettinger2020-04-191-0/+7
|
* bpo-40282: Allow random.getrandbits(0) (GH-19539)Antoine Pitrou2020-04-171-0/+3
|
* bpo-40286: Add randbytes() method to random.Random (GH-19527)Victor Stinner2020-04-171-0/+7
| | | | | | | | | | | | Add random.randbytes() function and random.Random.randbytes() method to generate random bytes. Modify secrets.token_bytes() to use SystemRandom.randbytes() rather than calling directly os.urandom(). Rename also genrand_int32() to genrand_uint32(), since it returns an unsigned 32-bit integer, not a signed integer. The _random module is now built with Py_BUILD_CORE_MODULE defined.
* Doc: Fix s/pseudo random/pseudo-random/ (GH-18289)Julien Palard2020-01-311-2/+2
|
* bpo-38881: choices() raises ValueError when all weights are zero (GH-17362)Raymond Hettinger2019-11-231-2/+6
|
* bpo-32554: Deprecate hashing arbitrary types in random.seed() (GH-15382)Raymond Hettinger2019-08-221-0/+10
|
* bpo-37624: Document weight assumptions for random.choices() (GH-14855)Raymond Hettinger2019-07-191-1/+2
|
* bpo-33783: Use proper class markup for random.Random docs (GHè7817)Matthias Bussonnier2019-04-161-0/+5
| | | | Signed-off-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
* bpo-35904: Add statistics.fmean() (GH-11892)Raymond Hettinger2019-02-211-2/+2
|
* Improve readability of random module examples (GH-11884)Raymond Hettinger2019-02-151-2/+6
| | | Based on reviewer feedback from Allen Downey, convert ``lambda`` to ``def``.
* Document differences between random.choices() and random.choice(). (GH-11703)Raymond Hettinger2019-01-301-0/+7
|
* Neaten-up and extend the examples in the random module docs.Raymond Hettinger2016-12-041-10/+14
|
* Issue #28763: Use double hyphens (rendered as en-dashes) in numerical rangesSerhiy Storchaka2016-11-261-1/+1
|\ | | | | | | in the documentation.