MCPcopy 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

80pong_log.addHandler(file_handler)
81
82def 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
89class Ball():

Callers 1

_update_eventsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected