VPTissue Reference Manual
SimPT_Sim::DurstenfeldShuffle Class Reference

Generate a random permuted sequence of integers 0,1,..., n. More...

#include <DurstenfeldShuffle.h>

Collaboration diagram for SimPT_Sim::DurstenfeldShuffle:
Collaboration graph

Static Public Member Functions

static void Fill (std::vector< unsigned int > &indices, RandomEngine &random_engine)
 

Detailed Description

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.


The documentation for this class was generated from the following files: