Hi,

You have to call "srand" only the first time that your application starts. Then every call to "rand" will get you different random values.