本文整理自网络,侵删。
function GeneraNIP(Longitud: Integer): String;var s : String; i : Integer;begin Randomize; s:=''; for i:=1 to 255 do s:=s + IntToStr(Random(10) + 1); i:=Random(253 - Longitud) + 1; Result:=Copy(S, i, Longitud); if Result[1] = '0' then Result[1]:='1';end;
procedure TForm2.Button1Click(Sender: TObject);beginform2.Caption:=GeneraNIP(10);end;
相关阅读 >>
Delphi tgifimage:timage显示gif动画
Delphi 采用 tidhttp 访问 https 的网站,采用 tidtcpclient 访问 https 的网站
Delphi 2009 之 tcategorypanelgroup[5]: headerstyle
更多相关阅读请进入《Delphi》频道 >>