Exploit ASLR
On systems with ASLR (Address Space Layout Randomization), the address of a stack variable can be used as a one time pseudorandom number. Instead of something like...
srand(time(0));
...try something like
srand(&x)
...where the address of x
(hopefully on the stack) is unique each time the program is run.