Random number
#1

Hellooo

I know you can do random(2500), but I want to select a random number between 1000 and 2500. How could I solve this?

Would appreciate answers
Reply
#2

pawn Код:
new randnum = 1000+random(1501);//random number between 1000 and 2500
Reply
#3

Quote:
Originally Posted by Norck
Посмотреть сообщение
pawn Код:
new randnum = 1000+random(1501);//random number between 1000 and 2500
Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)