title: Tkinter (Python) output random numbers to GUI
body: <p>Noob Alert!!!</p>
  
  <p>Hello, I just started my journey with through python a couple of days ago, so my question will most likely be extremely simple to answer. Basically I have a random number gen. from 1 to 10, this is activated when the "test button is pressed on the windows that pops up. As you can see from the image below the random number appears in the output console on the bottom of the screen, in this case it was a 9. So here's the question, How can I make the random number on the GUI? so when the button is pressed a random number appears on the same window as the button. </p>
  
  <p><a href="https://i.stack.imgur.com/hWd3i.png" rel="nofollow noreferrer">https://i.stack.imgur.com/hWd3i.png</a></p>
  
  <p>Any help is appreciated!</p>
  
  <pre><code>from tkinter import *
  
  root = Tk()
  root.geometry("300x300")
  root.title("test it is")
  root.grid()
  
  def randnum(event):
      import random
      value =random.randint(1,10)
      print(value)
  
  
  button_1 = Button(root, text="test")
  button_1.bind("&lt;Button-1&gt;",randnum)
  button_1.pack()
  root.mainloop()
  </code></pre>