Реферат: Получение случайных чисел
for i:=1 to 11 do line(15,i*30-10,515,i*30-10);
setbkcolor(black);
for i:=1 to 10 do
begin
setcolor(cyan);
SetFillStyle(6, 7);
Bar3D(13,27+30*(i-1),13+round(mat[i]*10000),35+30*(i-1), 2, TopOn);
setcolor(green);
SetFillStyle(8, 8);
Bar3D(13,35+30*(i-1),13+round(disp[i]*1000000),43+30*(i-1), 2, TopOn);
end;
SetFillStyle(6, 7);
setcolor(8);
bar(10, 430, 20, 440);
outtextxy(23,432,'- Mat. ozhidanie');
SetFillStyle(8, 8);
bar(10, 450, 20, 460);
outtextxy(23,452,'- Dispersiya');
readkey;
closegraph;
drawwin
end;
end;
end;
{*****DrawMenu*****}
procedure drawmenu(button:byte);
const light=green;{15,14,13,12,11,10,9}
dark=white;{7,6,5,4,3,2,1}
var col:array[1..4]of byte;