Delphi X秒生成大量垃圾字符


本文整理自网络,侵删。

 Delphi X秒生成大量垃圾字符

function RandomStr(Digit:Integer):string;
var
i: integer;
s: string;
begin
s := 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
setLength(Result,Digit);
Randomize;
for i := 1 to Digit do //循环次数也就是字节数

begin
Result[I] := s[Random(Length(s)-1)+1];
end;
end;

相关阅读 >>

Delphi 关于选择文件路径 selectdirectory 弹出窗口居中的问题

Delphi unidac 连接mdb access 数据库

Delphi 创建并调用 dll

Delphi延时

Delphi 写变速齿轮外挂

Delphi应用程序的调试(1-10)

Delphi 让scrollbox响应鼠标滚轮事件

Delphi 之 工具栏组件(ttoolbar)

Delphi 字符串连接

Delphi 字符串显示后5位

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...