Either:
Qt Code:
std::shuffle(str_list.begin(), str_list.end()); str_list.takeFirst();To copy to clipboard, switch view to plain text mode
or
Qt Code:
To copy to clipboard, switch view to plain text mode
depending on the effect you want to achieve (the first guarantees the same string is not chosen twice in a row, the other does not).
Bookmarks