Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/networkx/networkx
/ random
Method
random
networkx/utils/misc.py:376–377 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
374
self._rng = rng
375
376
def
random(self):
377
return
self._rng.random()
378
379
def
uniform(self, a, b):
380
return
a + (b - a) * self._rng.random()
Callers
15
test_PythonRandomInterface_RandomState
Function · 0.95
test_PythonRandomInterface_Generator
Function · 0.95
zipf_rv
Function · 0.45
discrete_sequence
Function · 0.45
weighted_choice
Function · 0.45
random
Method · 0.45
uniform
Method · 0.45
instantiate_np_random_state
Method · 0.45
instantiate_py_random_state
Method · 0.45
test_random_state_None
Method · 0.45
test_random_state_np_random
Method · 0.45
test_random_state_int
Method · 0.45
Calls
no outgoing calls
Tested by
15
test_PythonRandomInterface_RandomState
Function · 0.76
test_PythonRandomInterface_Generator
Function · 0.76
instantiate_np_random_state
Method · 0.36
instantiate_py_random_state
Method · 0.36
test_random_state_None
Method · 0.36
test_random_state_np_random
Method · 0.36
test_random_state_int
Method · 0.36
test_random_state_np_random_Generator
Method · 0.36
test_random_state_np_random_RandomState
Method · 0.36
test_random_state_py_random
Method · 0.36
t
Function · 0.36
test_rng_interface
Function · 0.36