bpo-37319: Improve documentation, code and tests of randrange. (GH-19112)
diff --git a/Doc/library/random.rst b/Doc/library/random.rst
index 07ee011..9d85c2b 100644
--- a/Doc/library/random.rst
+++ b/Doc/library/random.rst
@@ -141,8 +141,9 @@
``randrange(10)``. In the future, this will raise a :exc:`TypeError`.
.. deprecated:: 3.10
- The exception raised for non-integral values such as ``range(10.5)``
- will be changed from :exc:`ValueError` to :exc:`TypeError`.
+ The exception raised for non-integral values such as ``randrange(10.5)``
+ or ``randrange('10')`` will be changed from :exc:`ValueError` to
+ :exc:`TypeError`.
.. function:: randint(a, b)