Skip to content

Commit

Permalink
Add blurb, update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Apr 21, 2024
1 parent 5fc5449 commit 5a487bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 1 addition & 5 deletions Doc/library/random.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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 <N>
Run a test N times.
If no options are given, the output depends on the input:

* String or multiple: same as :option:`--choice`.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Add command-line interface for the :mod:`random` module. Patch by Hugo van
Kemenade.

0 comments on commit 5a487bb

Please sign in to comment.