It seems more difficult than i thought...
Ok,another question..Suppose that i have a set( vector) with n elements. How can i remove randomly let's say half of them??
All the remove algorithms of C++ satisfy a criterion. I don't need one. Just randomly remove some elements.