Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ roll
Function
roll
RandomDice.py:10–12 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
8
9
# Function to rool the dice
10
def
roll():
11
text.delete(0.0, END)
12
text.insert(END, str(randint(1, 100)))
13
14
15
# Defining our GUI
Callers
nothing calls this directly
Calls
2
delete
Method · 0.45
insert
Method · 0.45
Tested by
no test coverage detected