I need a \'good\' way to initialize the pseudo-random number generator in C++. I\'ve found an article that states:
In order to generate random-like
#include #include main() { struct timeval tv; gettimeofday(&tv,NULL); printf("%d\n", tv.tv_usec); return 0; }
tv.tv_usec is in microseconds. This should be acceptable seed.