Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ndleah/python-mini-project
/ selectRandom
Function
selectRandom
Tic_Tac_Toe/tic_tac_toe.py:95–99 ·
view source on GitHub ↗
(li)
Source
from the content-addressed store, hash-verified
93
return
move
94
95
def
selectRandom(li):
96
import
random
97
ln = len(li)
98
r = random.randrange(0, ln)
99
return
li[r]
100
101
def
StartTheGame():
102
global board
Callers
1
computerMove
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected