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
This is a discussion on Re-assigning random values within the C++ Programming forums, part of the General Programming Boards category; Hey. I was wondering if , when you assign a random value to x (or whatever) , (using the rand() ...
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();
yes.