03.10.2012, 11:22
pawn Код:
new result = random(100);
if(result <= 30) { do something } //30%
if(result <= 40) { do something } //40%
etc.
http://www.basic-mathematics.com/for...ercentage.html
new result = random(100);
if(result <= 30) { do something } //30%
if(result <= 40) { do something } //40%
etc.