title: Always repeated numbers given by rand()
body: <p>I use rand() in a look, and it always give me the same values several times in a row. I tried to use srand(time(NULL)) before the loop, but it does not help...</p>