![]() |
|
|
#4 |
|
Архивный участник
Join Date: Dec 2006
Posts: 60
|
попробую объяснить алгоритм так:
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 ну и так далее |
|
|
|
|