VPTissue Reference Manual
|
Generate a random permuted sequence of integers 0,1,..., n. More...
#include <DurstenfeldShuffle.h>
Static Public Member Functions | |
static void | Fill (std::vector< unsigned int > &indices, RandomEngine &random_engine) |
Generate a random permuted sequence of integers 0,1,..., n.
Durstenfeld implementation of Fisher-Yates shuffle (cfr. Wikipedia page).
Definition at line 34 of file DurstenfeldShuffle.h.