procedure TForm1.Timer1Timer(Sender: TObject); begin Randomize; Edit1.Text:=IntToStr(Random(10)); end; end.