Random sort ofDirectory

Is possible to do a random sort of ofDirectory?

I only found the sort() and sortByDate() methods but I need to randomize the order of the filelist.
Any snippet or code to achieve this?

Thanks a lot!

you could put the paths in a string vector and use ofRandomize

maybe something like

vector < string > paths;
for (int i = 0; i < dir.size(); i++){
    paths.push_back(dir.getPath(i));
}
ofRandomize(paths);