MCPcopy Index your code
hub / github.com/networkx/networkx / random

Method random

networkx/utils/misc.py:335–337  ·  view source on GitHub ↗

Get the next random number in the range 0.0 <= X < 1.0.

(self)

Source from the content-addressed store, hash-verified

333 self.gauss_next = None
334
335 def random(self):
336 """Get the next random number in the range 0.0 <= X < 1.0."""
337 return self._rng.random()
338
339 def getrandbits(self, k):
340 """getrandbits(k) -> x. Generates an int with k random bits."""

Callers

nothing calls this directly

Calls 1

randomMethod · 0.45

Tested by

no test coverage detected