21.01.2012, 20:48
If you want to randomize between a minimal and a maximal number you can use randomex:
For example:
random(5) can return 0,1,2,3,4,5 while randomex(3,5) can return 3,4,5.
pawn Код:
stock randomex(min, max)
{
return random(max - min) + min;
}
random(5) can return 0,1,2,3,4,5 while randomex(3,5) can return 3,4,5.