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

Method test_randint

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

Source from the content-addressed store, hash-verified

469 assert_array_almost_equal(actual, desired[0, 0], decimal=15)
470
471 def test_randint(self):
472 random.seed(self.seed)
473 actual = random.randint(-99, 99, size=(3, 2))
474 desired = np.array([[31, 3],
475 [-52, 41],
476 [-48, -66]])
477 assert_array_equal(actual, desired)
478
479 def test_random_integers(self):
480 random.seed(self.seed)

Callers

nothing calls this directly

Calls 1

assert_array_equalFunction · 0.90

Tested by

no test coverage detected