MCPcopy
hub / github.com/numpy/numpy / test_scalar

Method test_scalar

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

Source from the content-addressed store, hash-verified

75
76class TestSeed:
77 def test_scalar(self):
78 s = random.RandomState(0)
79 assert_equal(s.randint(1000), 684)
80 s = random.RandomState(4294967295)
81 assert_equal(s.randint(1000), 419)
82
83 def test_array(self):
84 s = random.RandomState(range(10))

Callers

nothing calls this directly

Calls 1

assert_equalFunction · 0.90

Tested by

no test coverage detected