Is it good idea to pass uninitialized variable to srand instead of result of time(NULL)? It is one #include and one function call
srand
time(NULL)
#include
It's not a good idea. Undefined behaviour doesn't guarantee that you won't get the same seed on every run, which would be bad for randomness. It doesn't guarantee that your processor won't halt and catch fire either.