MCPcopy
hub / github.com/numpy/numpy / test_rand_singleton

Method test_rand_singleton

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

Source from the content-addressed store, hash-verified

467 assert_array_almost_equal(actual, desired, decimal=15)
468
469 def test_rand_singleton(self):
470 rng = random.RandomState(self.seed)
471 actual = rng.rand()
472 desired = 0.61879477158567997
473 assert_array_almost_equal(actual, desired, decimal=15)
474
475 def test_randn(self):
476 rng = random.RandomState(self.seed)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected