24 #include <trng/uniform_int_dist.hpp>
31 void DurstenfeldShuffle::Fill(vector<unsigned int>& v, RandomEngine& r)
34 for (
unsigned int i = 1; i < v.size(); i++) {
35 const auto j = r.GetGenerator(trng::uniform_int_dist(0U, i))();
Interface of RandomEngine.
Interface for DurstenfeldShuffle.
Namespace for the core simulator.