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
435cb0f2
Commit
435cb0f2
authored
Sep 06, 2010
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document which part of the random module module are guaranteed.
parent
616453c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
Doc/library/random.rst
Doc/library/random.rst
+16
-0
Misc/NEWS
Misc/NEWS
+5
-0
No files found.
Doc/library/random.rst
View file @
435cb0f2
...
...
@@ -270,3 +270,19 @@ Examples of basic usage::
<http://code.activestate.com/recipes/576707/>`_ for a compatible alternative
random number generator with a long period and comparatively simple update
operations.
Notes on Reproducibility
========================
Sometimes it is useful to be able to reproduce the sequences given by a pseudo
random number generator. By re-using a seed value, the same sequence should be
reproducible from run to run as long as multiple threads are not running.
Most of the random module's algorithms and seeding functions are subject to
change across Python versions, but two aspects are guaranteed not to change:
* If a new seeding method is added, then a backward compatible seeder will be
offered.
* The generator's :meth:`random` method will continue to produce the same
sequence when the compatible seeder is given the same seed.
Misc/NEWS
View file @
435cb0f2
...
...
@@ -13,6 +13,11 @@ Core and Builtins
Library
-------
- Updates to the random module:
* Document which parts of the module are guaranteed to stay the same
across versions and which parts are subject to change.
- collections.OrderedDict now supports a new method for repositioning
keys to either end.
...
...
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