procedure RList; begin Randomize; repeat r := Random(15)+1; if Form1.ListBox1.Items.Count = 15 then exit; until New[r] <> 0 ; Form1.ListBox1.Items.Add(IntToStr(r)); New[r] := 0; end;