Something else just came to mind. For your program, I was assuming that you did it earlier, but did you make sure to include
Qt Code:
  1. #include <time.h>
To copy to clipboard, switch view to plain text mode 
to your includes and
Qt Code:
  1. srand(time(0));
To copy to clipboard, switch view to plain text mode 
to the beginning of your code execution? If you do not initialize your random number seed, then you will be generating
the same random numbers every time your code executes.