Random
#1

Could someone tell me why this doesn't work

PHP код:
CheckNumber[i] = 1000+random(9999); 
sometime it give's me a number above 9999.
Reply
#2

pawn Код:
CheckNumber[i] = random(9999);
Reply
#3

Quote:
Originally Posted by Serbish
Посмотреть сообщение
pawn Код:
CheckNumber[i] = random(9999);
I want the minimum number to be 1000 and maximum number 9999
Reply
#4

Dude, I hope you did go to school. Do you even know how to plus?
pawn Код:
CheckNumber[i] = 1000+random(8999);
1000+8999 = 9999, if you didn't know.
Reply
#5

Removed
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)