I need to return data from a function that is called by a tkinter button.

```
root= Tk()
def random():
    num_1= random.randint(0,12)
    num_2= random.randint(0,3)
    return num_1,num_2

num_1= None
num_2= None
Play=ttk.Button(text="Play",command=random)
Play.grid(row=3,column=0)

root.mainloop()

```

Im not sure where the return actual stored the variables because when i print num\_1 and num\_2 both print None instead of the expected random numbers.
Any input will be appreciated.

(also i have a mainloop etc.)