MCPcopy Index your code
hub / github.com/python/cpython / randcomplex

Function randcomplex

Modules/_decimal/tests/randdec.py:454–460  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

452 return f
453
454def randcomplex():
455 real = randfloat()
456 if randrange(100) > 30:
457 imag = 0.0
458 else:
459 imag = randfloat()
460 return complex(real, imag)
461
462def randfraction():
463 num = randint()

Callers

nothing calls this directly

Calls 1

randfloatFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…