The return value from first invocation of rand() seem correlates with the random seed value.
The value returned from first invocation of rand() after setting random seed by srand() changes only a 'little' from invocation to invocation. If a sequence of random number is generated rest values are ok.
Following program segment is compiled by Intel C++ v7.0 for win32, using VC++ 6.0, windows 2000sp3 and PIII 866.
using namespace std;
int main(int argc, char* argv)
for(i=0; i<10000; i++)
cout << rand() << setw(10) << rand() << setw(10) << rand() << setw(10) << rand() << endl;