MCPcopy
hub / github.com/numpy/numpy / test_randint

Method test_randint

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

Source from the content-addressed store, hash-verified

485 assert_array_almost_equal(actual, desired[0, 0], decimal=15)
486
487 def test_randint(self):
488 rng = random.RandomState(self.seed)
489 actual = rng.randint(-99, 99, size=(3, 2))
490 desired = np.array([[31, 3],
491 [-52, 41],
492 [-48, -66]])
493 assert_array_equal(actual, desired)
494
495 def test_random_integers(self):
496 rng = random.RandomState(self.seed)

Callers

nothing calls this directly

Calls 1

assert_array_equalFunction · 0.90

Tested by

no test coverage detected