index
:
delta/cpython-git.git
2.7
3.10
3.11
3.4
3.5
3.6
3.7
3.7-readme-update
3.8
3.9
Mariatta-patch-1
Mariatta-patch-2
alex-patch-1
ast-new-type-comment-null-check
backport-0613c1e-3.7
backport-10654c1-3.7
backport-109d966-3.9
backport-24bcefc-3.6
backport-24bcefc-3.7
backport-24bcefc-3.8
backport-24bd50b-2.7
backport-24bd50b-3.6
backport-283f9a2-3.6
backport-51c3e28-3.10
backport-51c3e28-3.8
backport-52d1b86-3.6
backport-52f9842-3.9
backport-5a88d50-3.8
backport-5a8d121-3.5
backport-5bdab64-3.7
backport-6ec0dec-3.9
backport-704e2d3-2.7
backport-731ff68-3.6
backport-73d6002-3.7
backport-74ae50e-2.7
backport-74ae50e-3.7
backport-76b5d71-3.9
backport-8acd0e0-3.9
backport-8ed6503-3.8
backport-916610e-3.6
backport-916610e-3.7
backport-95da310-3.8
backport-adf24bd-3.8
backport-adf24bd-3.9
backport-cd16661-2.7
backport-eeab510-2.7
backport-eeab510-3.6
backport-eeab510-3.7
backport-f7955a8-3.10
backport-f7955a8-3.9
backport-ff023ed-3.8
benjamin-eval-loop-edit
benjamin-expat-2.2.6
benjamin-external-zip
benjamin-interp-initialize
benjamin-keyword-restriction
benjamin-musl-z-workaround
benjamin-pickle-overflow
benjamin-prlimit-permission-test
benjamin-pyapi
benjamin-tanh-zero
benjamin-traceback-obo
berkerpeksag-update-codeowners
bind-socket
bpo-37741-importlib-metadata-docs-visible
bpo-39107
bpo-39235-genexp-endloc
bpo-41855-backport-fix
bpo-42057
bpo-43428/importlib-metadata-3.7
bpo-43569/man-as-machine
bpo-43780/importlib_metadata-3.10
bpo-43856/importlib-metadata-new
bpo-43926/importlib-metadata-4
bpo-45419
bpo-45514/deprecate-importlib-resources-legacy
bpo-45765/metadata-distribution-empty-path
bpo-46118/resources-package
bpo-46124/zoneinfo-resources
bpo-46125/importlib-resources-test-traversable
bpo-46126/bad-error-message
bpo-46425/restore-simple-importlib-tests
bpo-46474/entrypoint-regex
bpo-46474/entrypoint-regex-fix
branch-v3.10.0
branch-v3.9.0
bugfix/16396-linux-wintypes-importable
buildbot-custom
cjw296-patch-1
constant-kind
datetime_backport_test
dependabot/github_actions/actions/cache-2.1.7
dependabot/github_actions/actions/cache-v2.1.3
dependabot/github_actions/actions/cache-v2.1.4
dependabot/github_actions/actions/cache-v2.1.5
dependabot/github_actions/actions/upload-artifact-2.3.1
dependabot/github_actions/actions/upload-artifact-v2.2.1
dependabot/github_actions/actions/upload-artifact-v2.2.2
dependabot/github_actions/actions/upload-artifact-v2.2.3
descr-howto-feedback
enum-lost-fixes
enum-private-310
ethanfurman-acks
faster-bytes-iter
feature-version
feature/42129-resources-namespace-packages
feature/putrequest-hooks
fedora-2.7
find_module-deprecation-windows
fix-cf-feature-versiob
fix-cf-feature-version
fix-cf-feature-version-38
fix-cf-feature-version-39
fix-misc-acks
fix-misc-acks-38
fix-misc-acks-sort
fix-namedexpr-comment
fix-req-type
fix-segfaults
fix-time_ns-link
fix-tok-type-comments-flag
fix-traceback-syntax-error
fixup-bpo-34003
importlib_metadata-3.3
main
master
misc-acks-comment
mp-manager-tests
ncoghlan-bpo-33499-whats-new
ncoghlan-clarify-U-mode-deprecation
ncoghlan-fix-versionchanged-note
ncoghlan-whatsnew-38-placeholder-notes
orphaned-comment
pep572
pipelines-badge-3.6
pipelines-readme-3.7
pr_18370
pr_27789
pr_4170
print-statement
readme-update
refactor-lambda-parameters
revert-10245-msix
revert-10341-patch-7
revert-11293-bpo35565
revert-11318-fast-enum
revert-11341-bpo35603
revert-11477-backport-cbb1645-3.6
revert-11482-backport-cbb1645-2.7
revert-13569-undo-ea2b76bdc5f97f49701213d105b8ec2387ea2fa5
revert-13599-codeowner
revert-13893-fix-issue-37193
revert-14522-remove_unused_imports37
revert-15687-backport-87bd207-3.7
revert-15895-named_tuple_concept
revert-16839-backport-5a88d50-3.8
revert-17659-utf8-buffer
revert-17774-issue27973-win-fix
revert-19108-remove-cElementTree
revert-22049-bpo-1635741-signalmodule
revert-22513-update_test_codecs
revert-22997-tempfile-overhead
revert-23107-revert-13893-fix-issue-37193
revert-23398-bpo-1635741-struct
revert-23827-backport-dcc997c-3.9
revert-23828-backport-dcc997c-3.8
revert-23917-enum-prepare_kwds
revert-24821-fix/bigint_freelist
revert-25103-binary-locale
revert-25134-regen_stable_abi
revert-28650-revert-28615-test-datetime-discover
revert-28660-revert-gh28645
revert-29124-bpo-44019
revert-30472-issue-46301
revert-6121-is_integer
revert-7960-backport-2cc9d21-3.7
revert-9703-master
soft-keywords
suspcious
sync-39-whatsnew
travis-3.5
travis-3.6
travis-macOS
type-comments
unixdeepfreeze
v3.8.4
whatsnew-617
windeepfreeze
zhangyangyu-patch-1
zooba-patch-1
github.com: python/cpython.git
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
Lib
/
random.py
Commit message (
Expand
)
Author
Age
Files
Lines
*
Move binomialvariate() to a section for discrete distributions (GH-102955)
Raymond Hettinger
2023-03-23
1
-20
/
+25
*
GH-101097: Switch from standard interval notation to greater or less than sig...
Andrew Hong
2023-01-22
1
-1
/
+1
*
GH-100805: Support numpy.array() in random.choice(). (GH-100830)
Raymond Hettinger
2023-01-08
1
-1
/
+4
*
GH-100234: Set a default value for random.expovariate() (GH-100235)
Raymond Hettinger
2022-12-15
1
-1
/
+1
*
bpo-37000: Remove obsolete comment in _randbelow_with_getrandbits (#95775)
Matthias Görgens
2022-08-08
1
-1
/
+1
*
log2() is faster than log() (#95214)
Raymond Hettinger
2022-07-24
1
-3
/
+3
*
Compute v only when needed. (#95183)
Raymond Hettinger
2022-07-23
1
-1
/
+1
*
GH-81620: Add random.binomialvariate() (GH-94719)
Raymond Hettinger
2022-07-13
1
-2
/
+93
*
gh-84623: Remove unused imports (#94132)
Victor Stinner
2022-06-22
1
-1
/
+1
*
gh-86388 Remove deprecated behaviors in randrange() (#92677)
Raymond Hettinger
2022-05-11
1
-43
/
+10
*
bpo-46737: Add default arguments to random.gauss and normalvariate (GH-31360)
Zackery Spytz
2022-02-15
1
-2
/
+2
*
bpo-46624: Defer to 3.12: "Remove deprecated support for non-integer values" ...
Miro Hrončok
2022-02-03
1
-10
/
+42
*
Move error test to the function that needs it. Improve error message. (GH-30...
Raymond Hettinger
2021-12-09
1
-7
/
+4
*
bpo-42222: Remove deprecated support for non-integer values (GH-28983)
Raymond Hettinger
2021-10-16
1
-42
/
+10
*
bpo-45155: Apply new byteorder default values for int.to/from_bytes (GH-28465)
Raymond Hettinger
2021-09-20
1
-3
/
+3
*
bpo-40465: Remove random module features deprecated in 3.9 (GH-25874)
Raymond Hettinger
2021-05-04
1
-38
/
+12
*
bpo-44018: random.seed() no longer mutates its inputs (GH-25856)
Raymond Hettinger
2021-05-03
1
-2
/
+1
*
Improve the error message for choices(population, 10) (GH-25267)
Raymond Hettinger
2021-04-19
1
-1
/
+9
*
Reduce overhead on random timings (GH-24455)
Raymond Hettinger
2021-02-04
1
-1
/
+1
*
bpo-37319: Improve documentation, code and tests of randrange. (GH-19112)
Serhiy Storchaka
2021-01-25
1
-24
/
+20
*
bpo-42944 Fix Random.sample when counts is not None (GH-24235)
jonanifranco
2021-01-18
1
-1
/
+1
*
bpo-42931: randbytes missing from random.__all__ (GH-24219)
Setrak Balian
2021-01-15
1
-0
/
+1
*
No need to test "istep==1" twice. (GH-24064)
Raymond Hettinger
2021-01-02
1
-4
/
+2
*
bpo-42772: Step argument ignored when stop is None. (GH-24018)
Raymond Hettinger
2021-01-02
1
-1
/
+7
*
bpo-42222: Modernize integer test/conversion in randrange() (#23064)
Raymond Hettinger
2020-12-28
1
-11
/
+43
*
bpo-42470: Do not warn on sequences which are also sets in random.sample() (G...
masklinn
2020-12-18
1
-6
/
+7
*
bpo-41773: Raise exception for non-finite weights in random.choices(). (GH-2...
Ram Rachum
2020-09-28
1
-1
/
+3
*
random module: Convert a "while 1" to "while True (GH-21700)
Raymond Hettinger
2020-08-02
1
-1
/
+1
*
bpo-41421: Algebraic simplification for random.paretovariate() (GH-21695)
Raymond Hettinger
2020-08-01
1
-1
/
+1
*
Improve code organization for the random module (GH-21161)
Raymond Hettinger
2020-06-25
1
-177
/
+176
*
Small clean-ups for the random module (GH-21038)
Raymond Hettinger
2020-06-22
1
-30
/
+27
*
Minor code clean-ups (GH-20838)
Raymond Hettinger
2020-06-13
1
-89
/
+110
*
bpo-40541: Add optional *counts* parameter to random.sample() (GH-19970)
Raymond Hettinger
2020-05-08
1
-5
/
+29
*
bpo-40465: Deprecate the optional argument to random.shuffle(). (#19867)
Raymond Hettinger
2020-05-02
1
-0
/
+4
*
Simplify choice()'s interaction with the private _randbelow() method (GH-19831)
Raymond Hettinger
2020-05-01
1
-9
/
+5
*
bpo-40286: Remove C implementation of Random.randbytes() (GH-19797)
Victor Stinner
2020-04-29
1
-0
/
+6
*
bpo-40325: Deprecate set object support in random.sample() (GH-19591)
Raymond Hettinger
2020-04-19
1
-1
/
+4
*
bpo-40282: Allow random.getrandbits(0) (GH-19539)
Antoine Pitrou
2020-04-17
1
-2
/
+4
*
bpo-40286: Add randbytes() method to random.Random (GH-19527)
Victor Stinner
2020-04-17
1
-0
/
+7
*
bpo-38881: choices() raises ValueError when all weights are zero (GH-17362)
Raymond Hettinger
2019-11-23
1
-1
/
+3
*
bpo-32554: Deprecate hashing arbitrary types in random.seed() (GH-15382)
Raymond Hettinger
2019-08-22
1
-2
/
+13
*
bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)
Serhiy Storchaka
2019-06-01
1
-1
/
+1
*
bpo-36559: random module: optimize sha512 import (GH-12742)
Christian Heimes
2019-04-10
1
-1
/
+8
*
Convert range to repeat for choices() (#11889)
Raymond Hettinger
2019-02-16
1
-3
/
+3
*
Be consistent about the use of from-imports in random module (GH-11837)
Raymond Hettinger
2019-02-13
1
-4
/
+4
*
bpo-35782: Fix error message in randrange (GH-11620)
Kumar Akshay
2019-01-21
1
-1
/
+1
*
bpo-30561: Sync-up expovariate() and gammavariate code (GH-1934)
leodema
2018-12-23
1
-4
/
+1
*
bpo-35513, unittest: TextTestRunner uses time.perf_counter() (GH-11180)
Victor Stinner
2018-12-17
1
-2
/
+2
*
Remove unnecessary and over-restrictive type check (GH-10905)
Raymond Hettinger
2018-12-04
1
-2
/
+0
*
Add comments regarding speed/space/entropy trade-offs (GH-10885)
Raymond Hettinger
2018-12-04
1
-0
/
+13
[next]