[Ajuda] Random Float
#5

PHP код:
Float:frandom(Float:maxFloat:min 0.0dp 4)
{
    new
        
Float:mul floatpower(10.0dp),
        
imin floatround(min mul),
        
imax floatround(max mul);
       return 
float(random(imax imin) + imin) / mul;

Alinha tudo direitinho usando tab, estou pelo celular.
Reply


Messages In This Thread
Random Float - by GuiKommander - 08.12.2018, 12:34
Re: Random Float - by ipsLuan - 08.12.2018, 13:31
Re: Random Float - by GuiKommander - 08.12.2018, 18:54
Re: Random Float - by GuiKommander - 08.12.2018, 20:52
Re: Random Float - by RiqueP - 08.12.2018, 22:08
Re: Random Float - by GuiKommander - 08.12.2018, 22:44

Forum Jump:


Users browsing this thread: 1 Guest(s)