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

Go to the source code of this file.

Namespaces

namespace  ttk
 TTK base package defining the standard types.
 

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.