Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ndleah/python-mini-project
/ get_random
Function
get_random
Lazy_Pong/pong.py:82–86 ·
view source on GitHub ↗
(limit: int)
Source
from the content-addressed store, hash-verified
80
pong_log.addHandler(file_handler)
81
82
def
get_random(limit: int):
83
num_rand = random.randint(-limit, limit)
84
while
num_rand == 0:
85
num_rand = random.randint(-limit, limit)
86
return
num_rand
87
88
89
class
Ball():
Callers
1
_update_events
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected