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.