How to generate random numbers?
#1

Title ^^
Reply
#2

random(100);
Reply
#3

That'll give me?

A random number between 1-99?
Reply
#4

Yes.
Reply
#5

Well a random number between 0 and 99. If you want to make a min-max, use this function:
pawn Код:
randMin(min, max) // By ****** (I think)
{
    return random(max - min) + min;
}
Reply
#6

Quote:
Originally Posted by Stinged
Посмотреть сообщение
Well a random number between 0 and 99. If you want to make a min-max, use this function:
pawn Код:
randMin(min, max) // By ****** (I think)
{
    return random(max - min) + min;
}
Thanks for both of y'all, this is what I was exactly wanting
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)