Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/networkx/networkx
/ uniform
Method
uniform
networkx/utils/misc.py:379–380 ·
view source on GitHub ↗
(self, a, b)
Source
from the content-addressed store, hash-verified
377
return
self._rng.random()
378
379
def
uniform(self, a, b):
380
return
a + (b - a) * self._rng.random()
381
382
def
randrange(self, a, b=None):
383
import
numpy
as
np
Callers
6
test_PythonRandomInterface_RandomState
Function · 0.95
test_PythonRandomInterface_Generator
Function · 0.95
waxman_graph
Function · 0.80
navigable_small_world_graph
Function · 0.80
geometric_soft_configuration_graph
Function · 0.80
random_spanning_tree
Function · 0.80
Calls
1
random
Method · 0.45
Tested by
2
test_PythonRandomInterface_RandomState
Function · 0.76
test_PythonRandomInterface_Generator
Function · 0.76