MCPcopy Create free account
hub / github.com/numpy/numpy / test_scalar

Method test_scalar

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

Source from the content-addressed store, hash-verified

71
72class TestSeed:
73 def test_scalar(self):
74 s = random.RandomState(0)
75 assert_equal(s.randint(1000), 684)
76 s = random.RandomState(4294967295)
77 assert_equal(s.randint(1000), 419)
78
79 def test_array(self):
80 s = random.RandomState(range(10))

Callers

nothing calls this directly

Calls 1

assert_equalFunction · 0.90

Tested by

no test coverage detected