Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

static void Impala::Util::RandomGenerator::PermutateVector ( std::vector< int > &  items  )  [inline, static]

Definition at line 50 of file RandomGenerator.h.

References GenerateInt().

00051     {
00052         int endIndex = items.size();
00053         while(endIndex > 1)
00054         {
00055             endIndex--;
00056             int pick = GenerateInt(endIndex);
00057             int temp = items[pick];
00058             items[pick] = items[endIndex];
00059             items[endIndex] = temp;
00060         }
00061     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:41:11 2010 for ImpalaSrc by  doxygen 1.5.1