procedure TForm1.FormActivate(Sender: TObject);
begin
  with TForm.Create(Self) do try
    ShowModal;
    Randomize;
    if Random(2) = 0 then Self.Close;
  finally
    Free;
  end;
end;