Thank you. It works now. Your explanation was better than any C++ reference I found. I use http://www.cplusplus.com/

I always thought that "random" meant random in programming. Apparently there just the same sequence of numbers.