Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
441
def
randint():
442
p = randrange(1, 100)
443
return
ndigits(p) * (1,-1)[randrange(2)]
444
445
def
randfloat():
446
p = randrange(1, 100)
Callers
9
main
Function · 0.85
test_randint
Method · 0.85
zip_random_open_test
Method · 0.85
setUpClass
Method · 0.85
zip_random_open_test
Method · 0.85
create_random_list
Method · 0.85
write
Method · 0.85
writelines
Method · 0.85
randfraction
Function · 0.85
Calls
1
ndigits
Function · 0.85
Tested by
7
test_randint
Method · 0.68
zip_random_open_test
Method · 0.68
setUpClass
Method · 0.68
zip_random_open_test
Method · 0.68
create_random_list
Method · 0.68
write
Method · 0.68
writelines
Method · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…