The problem is that I am not able to put srand() in main, this is an exercise where I was told not to change main function, I can only work on the class.
I added a new function on the class, that I called void random() , and put the srand() on the function, that solved the problem. Thanks, you gave me some direction on the solution!