First time here? Check out the FAQ!
answered 2012-12-16 10:07:50 -0600
You can use the Boost Permutation Iterator or use OpenCV's randShuffle() (there is an example of how to use it in the samples under samples\cpp\kmeans.cpp).
randShuffle()
samples\cpp\kmeans.cpp