From 5a487bb75d451ae9ff6094b18aa168114d30462c Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Sun, 21 Apr 2024 19:05:59 +0300 Subject: [PATCH] Add blurb, update docs --- Doc/library/random.rst | 6 +----- .../Library/2024-04-21-18-55-42.gh-issue-118131.eAT0is.rst | 2 ++ 2 files changed, 3 insertions(+), 5 deletions(-) create mode 100644 Misc/NEWS.d/next/Library/2024-04-21-18-55-42.gh-issue-118131.eAT0is.rst diff --git a/Doc/library/random.rst b/Doc/library/random.rst index b06142a68effc2..b3856c5aa44a20 100644 --- a/Doc/library/random.rst +++ b/Doc/library/random.rst @@ -712,7 +712,7 @@ The :mod:`!random` module can be executed from the command line. .. code-block:: sh - python -m random [-h] [-c CHOICE [CHOICE ...] | -i N | -f N | --test [N]] + python -m random [-h] [-c CHOICE [CHOICE ...] | -i N | -f N] [input ...] The following options are accepted: @@ -738,10 +738,6 @@ The following options are accepted: Print a random floating point number between 1 and N inclusive, using :meth:`uniform`. -.. option:: --test - - Run a test N times. - If no options are given, the output depends on the input: * String or multiple: same as :option:`--choice`. diff --git a/Misc/NEWS.d/next/Library/2024-04-21-18-55-42.gh-issue-118131.eAT0is.rst b/Misc/NEWS.d/next/Library/2024-04-21-18-55-42.gh-issue-118131.eAT0is.rst new file mode 100644 index 00000000000000..83ed66cf82fc20 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-04-21-18-55-42.gh-issue-118131.eAT0is.rst @@ -0,0 +1,2 @@ +Add command-line interface for the :mod:`random` module. Patch by Hugo van +Kemenade.