begin
memo1:=tmemo.Create(self);
if button1.Caption='start' then
button1.Caption :='stop'
Else if button1.Caption ='stop' then
button1.Caption :='start'
else
button1.Caption :='stop';
Randomize ;
memo1.Text :=inttostr(random(20));
Showmessage(memo1.Text );