Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4d0bd0b3
Commit
4d0bd0b3
authored
Feb 21, 2006
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trimmed trailing whitespace.
parent
c2fb6c74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Doc/lib/librandom.tex
Doc/lib/librandom.tex
+4
-4
No files found.
Doc/lib/librandom.tex
View file @
4d0bd0b3
...
...
@@ -23,7 +23,7 @@ Almost all module functions depend on the basic function
\function
{
random()
}
, which generates a random float uniformly in
the semi-open range [0.0, 1.0). Python uses the Mersenne Twister as
the core generator. It produces 53-bit precision floats and has a
period of 2**19937-1. The underlying implementation in C
period of 2**19937-1. The underlying implementation in C
is both fast and threadsafe. The Mersenne Twister is one of the most
extensively tested random number generators in existence. However, being
completely deterministic, it is not suitable for all purposes, and is
...
...
@@ -106,8 +106,8 @@ Bookkeeping functions:
other generators may also provide it as an optional part of the API.
When available,
\method
{
getrandbits()
}
enables
\method
{
randrange()
}
to handle arbitrarily large ranges.
\versionadded
{
2.4
}
\end{funcdesc}
\versionadded
{
2.4
}
\end{funcdesc}
Functions for integers:
...
...
@@ -269,7 +269,7 @@ called.
number generator'',
\citetitle
{
ACM Transactions on Modeling and Computer Simulation
}
Vol. 8, No. 1, January pp.3-30 1998.
}
\seetext
{
Wichmann, B. A.
\&
Hill, I. D., ``Algorithm AS 183:
An efficient and portable pseudo-random number generator'',
\citetitle
{
Applied Statistics
}
31 (1982) 188-190.
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment