fpc/tests/webtbs/tw3210.pp
2005-02-14 17:13:06 +00:00

19 lines
329 B
ObjectPascal

Const
N = 10000;
Var
count : array[0..200] of int64;
i , tot : longint;
Begin
fillchar(count , sizeof(count) , 0);
for i := 1 to N do
begin
inc(count[random(201)]);
end;
tot := 0;
for i := 0 to 200 do inc(tot , count[i]);
if (tot <> N) then
halt(1);
End.