25.02.2015, 09:07
pawn Код:
RandomizeFloat(&Float:var, limit)
{
if(limit <= 0)
return 0;
new Float:random_value = (random(limit) + (random(1001) * 0.001));
switch(random(2))
{
case 0:
var += random_value;
case 1:
var -= random_value;
}
return 1;
}