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

Method test_rand_singleton

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

Source from the content-addressed store, hash-verified

451 assert_array_almost_equal(actual, desired, decimal=15)
452
453 def test_rand_singleton(self):
454 random.seed(self.seed)
455 actual = random.rand()
456 desired = 0.61879477158567997
457 assert_array_almost_equal(actual, desired, decimal=15)
458
459 def test_randn(self):
460 random.seed(self.seed)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected