You need to use the srand() function to seed the random number generator. The most common way to do this is:
srand((unsigned int)time(NULL));
rand() is not a true random number...
Type: Posts; User: zenogais
You need to use the srand() function to seed the random number generator. The most common way to do this is:
srand((unsigned int)time(NULL));
rand() is not a true random number...
Theres also UPX, which is free and does an very very good job.
Here's some source code I wrote for timers in an engine I made. The engine used SDL and so the class had support for SDL. This can be easily removed.
Timer.h:
#if defined(_MSC_VER) ||...