MCPcopy Create free account
hub / github.com/apache/arrow / RandomShuffle

Method RandomShuffle

cpp/src/arrow/util/future_test.cc:1404–1407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1402
1403 template <typename U>
1404 void RandomShuffle(std::vector<U>* values) {
1405 std::default_random_engine gen(seed_++);
1406 std::shuffle(values->begin(), values->end(), gen);
1407 }
1408
1409 // Generate a sequence of randomly-sized ordered spans covering exactly [0, size).
1410 // Returns a vector of (start, stop) pairs.

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected