Lines Matching refs:Random
99 // A valid random seed must be in [1, kMaxRandomSeed].
122 // Returns a random seed in range [1, kMaxRandomSeed] based on the
137 // Returns the first valid random seed after 'seed'. The behavior is
142 << "Invalid random seed " << seed << " - must be in [1, "
295 void ShuffleRange(internal::Random* random, int begin, int end,
309 const int selected = begin + random->Generate(range_width);
316 inline void Shuffle(internal::Random* random, std::vector<E>* v) {
317 ShuffleRange(random, 0, static_cast<int>(v->size()), v);
763 // Gets the random seed used at the start of the current test iteration.
766 // Gets the random number generator.
767 internal::Random* random() { return &random_; }
870 // The random number seed used at the beginning of the test run.
873 // Our random number generator.
874 internal::Random random_;