Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Doc/library/random.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ Bookkeeping functions
instead of the system time (see the :func:`os.urandom` function for details
on availability).

If *a* is an int, it is used directly.
If *a* is an int, it is used directly. Note that negative integer seeds are
treated as equivalent to their absolute value, so for example ``seed(-5)`` and
``seed(5)`` will produce identical sequences.
Comment thread
karpathy marked this conversation as resolved.
Outdated

With version 2 (the default), a :class:`str`, :class:`bytes`, or :class:`bytearray`
object gets converted to an :class:`int` and all of its bits are used.
Expand Down
Loading