In my Qt c++ application I have a QStringList containing a set of QString values! I want to shuffle(change the positions of the QStrings in the QStringList arbitrarily) . Is there any default function like "shuffle_array" API in perl? If not how can I do it?
eg-
QStringList names;
names<<"John"<<"Smith"<<"Anne";
shuffling may change the positions of John,Smith and Anne arbitrarily! How can I achieve this?