title: What is the best way to seed srand()?
body: <p>The way I learned was to initially seed the random number generator with <code>srand(time(NULL))</code> and then use calls to <code>rand()</code> to generate random numbers. The problem with this approach is if I run my program multiple times in the same second, the random numbers generated will always be the same. What is a good way around this?</p>