summaryrefslogtreecommitdiffstats
path: root/Doc/lib/librandom.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-04-21 05:56:06 (GMT)
committerFred Drake <fdrake@acm.org>2001-04-21 05:56:06 (GMT)
commit4cacec5393abf00436fcd9c41039e0caf3af660c (patch)
tree1e6b76d9c035ac56e57a3e29cfb725f4959987f1 /Doc/lib/librandom.tex
parent056a71da76d3ad90109ef2ca7a37fd4f3ea01603 (diff)
downloadcpython-4cacec5393abf00436fcd9c41039e0caf3af660c.zip
cpython-4cacec5393abf00436fcd9c41039e0caf3af660c.tar.gz
cpython-4cacec5393abf00436fcd9c41039e0caf3af660c.tar.bz2
Fix a number of minor markup errors.
Diffstat (limited to 'Doc/lib/librandom.tex')
-rw-r--r--Doc/lib/librandom.tex6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/lib/librandom.tex b/Doc/lib/librandom.tex
index e2e24e1..6993260 100644
--- a/Doc/lib/librandom.tex
+++ b/Doc/lib/librandom.tex
@@ -98,10 +98,10 @@ Bookkeeping functions:
\begin{funcdesc}{seed}{\optional{x}}
Initialize the basic random number generator.
Optional argument \var{x} can be any hashable object.
- If \var(x) is omitted or \code{None}, current system time is used;
+ If \var{x} is omitted or \code{None}, current system time is used;
current system time is also used to initialize the generator when the
module is first imported.
- If \var(x) is not \code{None} or an int or long,
+ If \var{x} is not \code{None} or an int or long,
\code{hash(\var{x})} is used instead.
If \var{x} is an int or long, \var{x} is used directly.
Distinct values between 0 and 27814431486575L inclusive are guaranteed
@@ -137,7 +137,7 @@ Bookkeeping functions:
Change the internal state to what it would be if \function{random()}
were called \var{n} times, but do so quickly. \var{n} is a
non-negative integer. This is most useful in multi-threaded
- programs, in conjuction with multiple instances of the \var{Random}
+ programs, in conjuction with multiple instances of the \class{Random}
class: \method{setstate()} or \method{seed()} can be used to force
all instances into the same internal state, and then
\method{jumpahead()} can be used to force the instances' states as