[Tutorial] Random Numbers.
#3

Please add this and give credits to ******
Код:
stock randomEx(min, max)
{    
    //Credits to ******    
    new rand = random(max-min)+min;    
    return rand;
}
Found it on the forums a while ago and I'm using it, also explain why it is like that, would be really good for newbies.
Reply


Messages In This Thread
Random Numbers. - by newbie scripter - 17.01.2014, 10:36
Re: Random Numbers. - by Sojo12 - 17.01.2014, 11:08
Re: Random Numbers. - by Hansrutger - 17.01.2014, 11:10
Re: Random Numbers. - by newbie scripter - 17.01.2014, 11:26
Re: Random Numbers. - by Hansrutger - 17.01.2014, 11:38
Re: Random Numbers. - by newbie scripter - 17.01.2014, 11:57
Re: Random Numbers. - by Ace155 - 17.01.2014, 12:04
Re: Random Numbers. - by newbie scripter - 17.01.2014, 12:43
Re: Random Numbers. - by Diesel5 - 17.01.2014, 13:05

Forum Jump:


Users browsing this thread: 3 Guest(s)