MCPcopy Index your code
hub / github.com/python/cpython / __init__

Method __init__

Lib/random.py:119–126  ·  view source on GitHub ↗

Initialize an instance. Optional argument x controls seeding, as for Random.seed().

(self, x=None)

Source from the content-addressed store, hash-verified

117 VERSION = 3 # used by getstate/setstate
118
119 def __init__(self, x=None):
120 """Initialize an instance.
121
122 Optional argument x controls seeding, as for Random.seed().
123 """
124
125 self.seed(x)
126 self.gauss_next = None
127
128 def seed(self, a=None, version=2):
129 """Initialize internal state from a seed.

Callers

nothing calls this directly

Calls 1

seedMethod · 0.95

Tested by

no test coverage detected