RANDOM Numbers between 1-6
#1

the code to generate a number between 1 and 6
Reply
#2

pawn Код:
random(6);
Reply
#3

Quote:
Originally Posted by Jimmy0wns
Посмотреть сообщение
pawn Код:
random(6);
thank you
Reply
#4

Quote:
Originally Posted by Jimmy0wns
Посмотреть сообщение
pawn Код:
random(6);
That will return a number between 0-5 so you should add 1 on the result of it.

pawn Код:
random(6) + 1
the result will be now between 1-6.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)