S
sy0116
Unregistered / Unconfirmed
GUEST, unregistred user!
偶用以下代码来随机取4个数,但发现这四个数有时会有重复,要怎样写代码才能使这四个数不重复呢?
a:=inttostr(0 + Random(9 - 0));
b:=inttostr(0 + Random(9 - 0));
c:=inttostr(0 + Random(9 - 0));
d:=inttostr(0 + Random(9 - 0))
a:=inttostr(0 + Random(9 - 0));
b:=inttostr(0 + Random(9 - 0));
c:=inttostr(0 + Random(9 - 0));
d:=inttostr(0 + Random(9 - 0))