View Single Post
Old 26.05.2007, 21:15   #4
Corund
Архивный участник
 
Join Date: Dec 2006
Posts: 60
Default

попробую объяснить алгоритм так:
x:=rand(100);
if x < P1 then summon
else if x < P1+P2 then summon
else if x < P1+P2+P3 then summon
else if x < P1+P2+P3+P4 then summon
ну и так далее
Corund is offline