MCPcopy Index your code
hub / github.com/secdev/scapy / RandFloat

Class RandFloat

scapy/volatile.py:275–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273
274
275class RandFloat(_RandNumeral[float]):
276 def __init__(self, min, max):
277 # type: (int, int) -> None
278 self.min = min
279 self.max = max
280
281 def _fix(self):
282 # type: () -> float
283 return random.uniform(self.min, self.max)
284
285
286class RandBinFloat(RandFloat):

Callers 2

randvalMethod · 0.90
randvalMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…