Lines Matching full:last
58 void choose (InputIter first, InputIter last, OutputIter result, int numItems);
61 T choose (InputIter first, InputIter last);
65 T chooseWeighted (InputIter first, InputIter last, WeightIter weight);
68 void shuffle (Iterator first, Iterator last);
103 void Random::choose (InputIter first, InputIter last, OutputIter result, int numItems)
110 for (ndx = 0; first != last; ++first, ++ndx)
126 T Random::choose (InputIter first, InputIter last)
129 DE_ASSERT(first != last);
130 choose(first, last, &val, 1);
135 T Random::chooseWeighted (InputIter first, InputIter last, WeightIter weight)
140 for (ndx = 0; (first + ndx) != last; ndx++)
147 InputIter lastNonZero = last;
149 for (ndx = 0; (first + ndx) != last; ndx++)
161 DE_ASSERT(lastNonZero != last);
166 void Random::shuffle (Iterator first, Iterator last)
171 int numItems = (int)std::distance(first, last);