Home | History | Annotate | Download | only in src

Lines Matching defs:random

104 // A valid random seed must be in [1, kMaxRandomSeed].
133 // Returns a random seed in range [1, kMaxRandomSeed] based on the
148 // Returns the first valid random seed after 'seed'. The behavior is
153 << "Invalid random seed " << seed << " - must be in [1, "
311 void ShuffleRange(internal::Random* random, int begin, int end,
325 const int selected = begin + random->Generate(range_width);
332 inline void Shuffle(internal::Random* random, std::vector<E>* v) {
333 ShuffleRange(random, 0, static_cast<int>(v->size()), v);
797 // Gets the random seed used at the start of the current test iteration.
800 // Gets the random number generator.
801 internal::Random* random() { return &random_; }
904 // The random number seed used at the beginning of the test run.
907 // Our random number generator.
908 internal::Random random_;