{Initiation au Pascal - ACiX-M nø3 - Prog 2}
Uses Crt;

 Var
  PosX,Posy,Coul:Byte;
  I:LongInt;

  Procedure Eff_Ecran;
   Begin
    Asm
     Mov ax,3
     Int 10h
    End;
  End;

Begin
 Eff_Ecran;
 Randomize;
 Repeat
  PosX:=Round(Random*79)+1;
  PosY:=Round(Random*24)+1;
  Coul:=Round(Random*14)+1;
  GotoXY(PosX,PosY);
  Textcolor(Coul);
  Write('*');
   For I:=1 To 2000000 Do;   {Temporisation … changer en fonction de votre PC}
  GotoXY(PosX,PosY);
  Write(' ');
 Until Keypressed;

 Eff_Ecran;

End.
