Random help..
#1

How can I make a random value between 500 and 1000?

I tryed Random(500-1000); but it seems to not be working..

Thanks
Reply
#2

The random function in Pawn doesn't allow for picking in between two numbers, although you should be able to do this.

pawn Код:
new random = random(500) + 500;
That should always generate a number between 500 and 1000.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)