Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ roll_die
Function
roll_die
BoardGame-CLI/python.py:30–31 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
28
29
# Function to roll a six-sided die
30
def
roll_die():
31
return
random.randint(1, 6)
32
33
34
# Function to simulate a single turn
Callers
1
take_turn
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected