Hey. I was wondering if , when you assign a random value to x (or whatever) , (using the rand() function) you could later assign it another random value. Is this possible ?
Thanks in advance
Printable View
Hey. I was wondering if , when you assign a random value to x (or whatever) , (using the rand() function) you could later assign it another random value. Is this possible ?
Thanks in advance
if you mean something like this:
then yes.Code:int x = rand();
// yada yada yada
// bla bla bla
x = rand();
Yeah that's what I meant. Is that how to do it ?
yes.
Okay. Thanks