MCPcopy Index your code
hub / github.com/numpy/numpy / test_random

Method test_random

numpy/random/tests/test_smoke.py:173–176  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

171 assert_((r <= 0).all())
172
173 def test_random(self):
174 rg = self._create_rng().rg
175 assert_(len(rg.random(10)) == 10)
176 params_0(rg.random)
177
178 def test_standard_normal_zig(self):
179 rg = self._create_rng().rg

Callers

nothing calls this directly

Calls 4

_create_rngMethod · 0.95
assert_Function · 0.90
params_0Function · 0.85
randomMethod · 0.80

Tested by

no test coverage detected