frandom()
#4

Quote:
Originally Posted by Kitten
Посмотреть сообщение
pawn Код:
frandom(Float:max, Float:min = 0.0, dp = 4)
{
    new
        Float:mul = floatpower(10.0, dp),
        imin = floatround(min * mul),
        imax = floatround(max * mul);
    return float(random(imax - imin) + imin) / mul;
}
Yea, just searched up on ****** and found that from ******..Looks like it should work.
Reply


Messages In This Thread
frandom() - by MP2 - 11.06.2012, 04:36
Re: frandom() - by JhnzRep - 11.06.2012, 04:44
Re: frandom() - by Kitten - 11.06.2012, 04:46
Re: frandom() - by JhnzRep - 11.06.2012, 04:47
Re: frandom() - by Kitten - 11.06.2012, 04:48
Re: frandom() - by MP2 - 11.06.2012, 04:50
Re: frandom() - by JhnzRep - 11.06.2012, 04:51
Re: frandom() - by MP2 - 11.06.2012, 04:54
Re: frandom() - by Kitten - 11.06.2012, 05:07
Re: frandom() - by MP2 - 11.06.2012, 05:14

Forum Jump:


Users browsing this thread: 1 Guest(s)