@@ -20,7 +20,7 @@ On the real line, there are functions to compute uniform, normal (Gaussian),
2020lognormal, negative exponential, gamma, and beta distributions. For generating
2121distributions of angles, the von Mises distribution is available.
2222
23- Almost all module functions depend on the basic function :func: `random `, which
23+ Almost all module functions depend on the basic function :func: `. random `, which
2424generates a random float uniformly in the semi-open range [0.0, 1.0). Python
2525uses the Mersenne Twister as the core generator. It produces 53-bit precision
2626floats and has a period of 2\*\* 19937-1. The underlying implementation in C is
@@ -34,9 +34,9 @@ instance of the :class:`random.Random` class. You can instantiate your own
3434instances of :class: `Random ` to get generators that don't share state.
3535
3636Class :class: `Random ` can also be subclassed if you want to use a different
37- basic generator of your own devising: in that case, override the :meth: `random `,
38- :meth: `seed `, :meth: `getstate `, and :meth: `setstate ` methods.
39- Optionally, a new generator can supply a :meth: `getrandbits ` method --- this
37+ basic generator of your own devising: in that case, override the :meth: `~Random. random `,
38+ :meth: `~Random. seed `, :meth: `~Random. getstate `, and :meth: `~Random. setstate ` methods.
39+ Optionally, a new generator can supply a :meth: `~Random. getrandbits ` method --- this
4040allows :meth: `randrange ` to produce selections over an arbitrarily large range.
4141
4242The :mod: `random ` module also provides the :class: `SystemRandom ` class which
@@ -125,7 +125,7 @@ Functions for sequences:
125125
126126 Shuffle the sequence *x * in place. The optional argument *random * is a
127127 0-argument function returning a random float in [0.0, 1.0); by default, this is
128- the function :func: `random `.
128+ the function :func: `. random `.
129129
130130 Note that for even rather small ``len(x) ``, the total number of permutations of
131131 *x * is larger than the period of most random number generators; this implies
@@ -285,7 +285,7 @@ change across Python versions, but two aspects are guaranteed not to change:
285285* If a new seeding method is added, then a backward compatible seeder will be
286286 offered.
287287
288- * The generator's :meth: `random ` method will continue to produce the same
288+ * The generator's :meth: `~Random. random ` method will continue to produce the same
289289 sequence when the compatible seeder is given the same seed.
290290
291291.. _random-examples :
0 commit comments