A function like random/randomex(), but for floats.
#1

I'm looking a random function for floats:
fRandom(230.4, 530.7);

Have anyone created a function like this?

I have this function, but it shows error. ((error in the comment)
pawn Код:
stock Float:fRandomEx(Float:min, Float:max) // function with tag result used before definition, forcing reparse
{
    return min+(max - min)*random(32768)/32768.0;
}
Reply


Messages In This Thread
A function like random/randomex(), but for floats. - by WooTFTW - 10.08.2012, 10:56
Re: A function like random/randomex(), but for floats. - by playbox12 - 10.08.2012, 11:08
Re: A function like random/randomex(), but for floats. - by WooTFTW - 10.08.2012, 11:11

Forum Jump:


Users browsing this thread: 1 Guest(s)