MCPcopy
hub / github.com/numpy/numpy / _create_state

Method _create_state

numpy/random/tests/test_randomstate.py:196–200  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

194
195class TestSetState:
196 def _create_state(self):
197 seed = 1234567890
198 random_state = random.RandomState(seed)
199 state = random_state.get_state()
200 return random_state, state
201
202 def test_basic(self):
203 random_state, state = self._create_state()

Callers 9

test_basicMethod · 0.95
test_gaussian_resetMethod · 0.95
test_pickleMethod · 0.95
test_state_settingMethod · 0.95
test_reprMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected