tlx
random_bipartition_shuffle.hpp File Reference
#include <cassert>
#include <iterator>
#include <random>

Go to the source code of this file.

Namespaces

 tlx
 

Functions

template<typename RandomAccessIt , typename RandomBits >
void random_bipartition_shuffle (RandomAccessIt begin, RandomAccessIt end, size_t size_left_partition, RandomBits &urng)
 Similar to std::shuffle, but only generates a random bi-partition. More...