random between two float numbers Tag mismatch
#4

pawn Код:
stock Float:randomEx(Float:min, Float:max)
{
    new f_min = floatround(min);
    new f_max = floatround(max);
    new Float:rand = float( random( (f_max - f_min) / 10000 )) + min;
    return rand;
}
You haven't used floatround as Misiur said! But here is the code!
Reply


Messages In This Thread
random between two float numbers Tag mismatch - by DiamantEspace18 - 10.01.2015, 11:35
Re: random between two float numbers Tag mismatch - by Misiur - 10.01.2015, 11:40
Re : random between two float numbers Tag mismatch - by DiamantEspace18 - 10.01.2015, 11:45
Re: random between two float numbers Tag mismatch - by Gammix - 10.01.2015, 11:47
Re: random between two float numbers Tag mismatch - by Misiur - 10.01.2015, 11:48
Re : random between two float numbers Tag mismatch - by DiamantEspace18 - 10.01.2015, 11:51

Forum Jump:


Users browsing this thread: 1 Guest(s)