TTK
Loading...
Searching...
No Matches
Namespaces | Functions
Shuffle.h File Reference
#include <cstdlib>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  ttk
 The Topology ToolKit.
 

Functions

template<typename T , typename U >
void ttk::shuffle (std::vector< T > &toShuffle, U &&rng)
 Platform-independent alternative to std::shuffle implementing the Fisher-Yates shuffle algorithm.