MCPcopy
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

zipf_rvFunction · 0.45
discrete_sequenceFunction · 0.45
weighted_choiceFunction · 0.45
randomMethod · 0.45
uniformMethod · 0.45
test_random_state_intMethod · 0.45

Calls

no outgoing calls