My problem is that whenever I initialize a task in my program, it gets the same number for time_of_completion again and again. Each program run gets a new random number for time_of_completion but that number will say the same through out each run.
Example: if I have Task a,b,c; in my main program then a,b,c will have the same time_of_completion no matter what.
Can you please help me with how to make each new task will be initialized with a new random time_of_completion.
Thank you for your time and patience
Thank you very much, my program now works perfectly.
Did a little research and found out that if I put the srand(time(NULL)) in the constructor it'll be called many times at the same second and gives me the same value for rand()