怪事,大家来看看这个问题
yypp 2001-11-08 03:20:20 var s1,temp,s2:String;
i,j,count:integer;
begin
s1:='123456789';
count:=Length(s1);
for i:=0 to count do
begin
randomize;
j := random(Length(s1));
temp:=s1[j];
Delete(s1,j,1);
s2:=s2+temp;
end;
edit1.Text:=s2;
end;
为什么最后得到的字符串长度不一?
有时候一个字符也没有?