Q:

Random number in label in python 3 and tkinter

How can I make that in label generate some numbers for example: 
some text(e.g.Input): #here generate numbers#
Input and Output are text in label
I want to make that number are generated every second in the label

A:

To wait one second between each random number, use the after method and change the text in the scheduled function:
from tkinter import Tk, Label
import random

root = Tk()
label = Label(root)
label.pack()

def replace_text():
    label.config(text=str(random.random()))
    root.after(1000, replace_text)

replace_text()
root.mainloop()

