28.12.2011, 00:58
I forgot how to create random variable
its look like this?
The code i want is random from 10 to 100
its look like this?
Код:
new randomz = random(100 - 10);
new randomz = random(100 - 10);
#define RandomEx(%0,%1) floatround(random((%1) - (%0)) + (%0))
#define RandomEx(%0,%1) floatround(random((%1) - (%0)) + (%0))
new result = RandomEx(10,100);
printf(" result is %d ", result);
It is the right topic.
OnTopic. spedico used marcros to do a variable fast, easy and usefull. pawn Код:
Example: pawn Код:
|