Как-то так)
const n=6; m=3;
var a:array[1..n,1..m] of integer;
i,j:integer;
begin
for i:=1 to n do
for j:=1 to m do a[i,j]:=random(50);
for i:=1 to n do
for j:=1 to m do begin
if j=1 then a[i,j]:=500;
if j=2 then a[i,j]:=trunc(sqrt(a[i,j-1]));
if j=3 then a[i,j]:=(i+j) div 3;
end;
for i:=1 to n do begin
for j:=1 to m do write(a[i,j]:5);
writeln;
end;
end.