I can't find the documentation on this... A random value would be quite useful.
It would be like on a calculator: rand int (1,10->A
So A would take a value between 1 and 10... It would be useful for scripts...
I can't find the documentation on this... A random value would be quite useful.
It would be like on a calculator: rand int (1,10->A
So A would take a value between 1 and 10... It would be useful for scripts...
If I remember correctly it's something like:
int A = rand(1-10)
or something.
int A = Rand(10)+1;
Rand(10) picks a random integer value from 0 to 9.
I'm sorry, refresh my memory; why does it need a +1? Is that so it escapes the 0-9 range and goes from 1-10?
Yes, exactly.
There are currently 1 users browsing this thread. (0 members and 1 guests)