rand() function always returns the same value

For some reason, when ever I use the rand() fuction, it always returns the same value.

How do I fix this?
Do you always seed it with the same value?
Whats a seed?
http://www.cplusplus.com/reference/clibrary/cstdlib/rand/

First seed rand with srand()

Then call rand()

Thanks that sovled my problem!!!
Topic archived. No new replies allowed.