...
uses Unit2;
procedure TForm1.FormCreate(Sender: TObject);
begin
Randomize;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
if Form2.WindowState = wsMinimized then
SetWindowPos(Form2.Handle,
0,
Random(300), Random(200), GetSystemMetrics(SM_CXMINIMIZED),
0,
0);
end;