srand [function]

srand( int seed )

specify a different seed value for the built-in pseudo-random number generator

srand( 5 ); // restart the generator with the value specified
srand( ftime() ); // restart the generator depending on the second the code was executed