a little better : I changed for that
and later in the generate keys method :
while( nb_val < MAX_KEYS_NB)
//RandomValue = Randomize( 0, MAX_KEYS_NB ); // Get random value between 0-10
RandomValue = qrand()%10 ;
nb_val = Keys_Set.count() ;
I moved the qsrand so that it initialize only on the QPushbutton event that is far to the mS.
QTime time = QTime::currentTime() ; // Create seed for the random that is needed only once on startup
//qsrand(QDateTime::currentDateTime ().toTime_t ());
Scrambled_Keyb_Set = this->RandomKeys () ;
QList<int> list = Scrambled_Keyb_Set.toList();
an ordered set only, and always
You say there are ten values, but what are they?