MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / shuffle

Method shuffle

unittests/catch.hpp:8206–8209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8204
8205 template<typename V>
8206 static void shuffle( V& vector ) {
8207 RandomNumberGenerator rng;
8208 std::shuffle( vector.begin(), vector.end(), rng );
8209 }
8210 };
8211
8212}

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected