Fix markup
diff --git a/Doc/library/random.rst b/Doc/library/random.rst
index a39b636..1d686cf 100644
--- a/Doc/library/random.rst
+++ b/Doc/library/random.rst
@@ -150,7 +150,7 @@
    argument.  This is especially fast and space efficient for sampling from a large
    population:  ``sample(range(10000000), 60)``.
 
-   If the sample size is larger than the population size, a :exc:``ValueError``
+   If the sample size is larger than the population size, a :exc:`ValueError`
    is raised.
 
 The following functions generate specific real-valued distributions. Function