mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 08:18:12 +02:00
17 lines
251 B
ObjectPascal
17 lines
251 B
ObjectPascal
var
|
|
i, rand, val: int64;
|
|
begin
|
|
rand:=-5;
|
|
i:=1;
|
|
while i<=10000 do
|
|
begin
|
|
val:=random(rand);
|
|
if (val<-5) or (val>0) then
|
|
begin
|
|
writeln('error: ', val);
|
|
halt(1);
|
|
end;
|
|
Inc(i);
|
|
end;
|
|
end.
|