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

Function randint

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

Source from the content-addressed store, hash-verified

439
440
441def randint():
442 p = randrange(1, 100)
443 return ndigits(p) * (1,-1)[randrange(2)]
444
445def randfloat():
446 p = randrange(1, 100)

Callers 9

mainFunction · 0.85
test_randintMethod · 0.85
zip_random_open_testMethod · 0.85
setUpClassMethod · 0.85
zip_random_open_testMethod · 0.85
create_random_listMethod · 0.85
writeMethod · 0.85
writelinesMethod · 0.85
randfractionFunction · 0.85

Calls 1

ndigitsFunction · 0.85

Tested by 7

test_randintMethod · 0.68
zip_random_open_testMethod · 0.68
setUpClassMethod · 0.68
zip_random_open_testMethod · 0.68
create_random_listMethod · 0.68
writeMethod · 0.68
writelinesMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…