Hi,

I have tried using the qrand() but I can't able to get the desired output. I want to generate a random set with non-repeatable alphabets. I have tried like this
Qt Code:
  1. int array[] = {65,66,67,68,69,70,71,72};
  2. qsrand(time(0));
  3. for(i=0;i < SequenceCount; i++)
  4. {
  5. int j = (qrand() % SequenceCount );
  6. qDebug() << array[j];
  7. }
To copy to clipboard, switch view to plain text mode 

But in the output I see some repeatable numbers.