From 7d1458643966719b69b9ba594f3a4f5906092b02 Mon Sep 17 00:00:00 2001 From: Robert Wolff Date: Wed, 25 Sep 2024 16:24:19 +0200 Subject: [PATCH 1/2] fix -f/--float command line option description See gh-123968 gh-124009 --- Doc/library/random.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/random.rst b/Doc/library/random.rst index c7f6b0bdd5b822..b3bcc3cb87ae08 100644 --- a/Doc/library/random.rst +++ b/Doc/library/random.rst @@ -741,7 +741,7 @@ The following options are accepted: .. option:: -f --float - Print a random floating-point number between 1 and N inclusive, + Print a random floating-point number between 0.0 and N inclusive, using :meth:`uniform`. If no options are given, the output depends on the input: From ac9eddd1e4f5459f6517c3fa230999f30782a359 Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Wed, 25 Sep 2024 17:36:43 +0300 Subject: [PATCH 2/2] Update Doc/library/random.rst --- Doc/library/random.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/random.rst b/Doc/library/random.rst index b3bcc3cb87ae08..ef0cfb0e76cef6 100644 --- a/Doc/library/random.rst +++ b/Doc/library/random.rst @@ -741,7 +741,7 @@ The following options are accepted: .. option:: -f --float - Print a random floating-point number between 0.0 and N inclusive, + Print a random floating-point number between 0 and N inclusive, using :meth:`uniform`. If no options are given, the output depends on the input: