home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l043 / 3.ddi / LINE.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1987-11-02  |  293 b   |  18 lines

  1. uses
  2.   Crt, Graph;
  3. var
  4.   Gd, Gm : integer;
  5.  
  6. begin
  7.   Gd := Detect;
  8.   InitGraph(Gd, Gm, '');
  9.   if GraphResult <> grOk then
  10.     Halt(1);
  11.   Randomize;
  12.   repeat
  13.     Line(Random(200), Random(200),
  14.          Random(200), Random(200));
  15.   until KeyPressed;
  16.   Readln;
  17.   CloseGraph;
  18. end.