Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ setSeed
Method
setSeed
numpy/random/tests/test_random.py:1059–1060 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
1057
self.seed = 123456789
1058
1059
def
setSeed(self):
1060
np.random.seed(self.seed)
1061
1062
# TODO: Include test for randint once it can broadcast
1063
# Can steal the test written in PR #6938
Callers
15
test_uniform
Method · 0.95
test_normal
Method · 0.95
test_beta
Method · 0.95
test_exponential
Method · 0.95
test_standard_gamma
Method · 0.95
test_gamma
Method · 0.95
test_f
Method · 0.95
test_noncentral_f
Method · 0.95
test_noncentral_f_small_df
Method · 0.95
test_chisquare
Method · 0.95
test_noncentral_chisquare
Method · 0.95
test_standard_t
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected