Random();
#1

Hi,

Is there any way to set minimum of Random(); instead of it being 1 to, for example, 20 if I did Random(20);
would something like Random(5-20); does the job or it'll set it's max to 15 only?

Thanks.
Reply
#2

pawn Код:
stock RandomEx(min, max)
{
    return random(max - min) + min;
}
Reply
#3

ah, thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)