Lines Matching refs:random
105 // A valid random seed must be in [1, kMaxRandomSeed].
134 // Returns a random seed in range [1, kMaxRandomSeed] based on the
149 // Returns the first valid random seed after 'seed'. The behavior is
154 << "Invalid random seed " << seed << " - must be in [1, "
312 void ShuffleRange(internal::Random* random, int begin, int end,
326 const int selected = begin + random->Generate(range_width);
333 inline void Shuffle(internal::Random* random, std::vector<E>* v) {
334 ShuffleRange(random, 0, static_cast<int>(v->size()), v);
788 // Gets the random seed used at the start of the current test iteration.
791 // Gets the random number generator.
792 internal::Random* random() { return &random_; }
895 // The random number seed used at the beginning of the test run.
898 // Our random number generator.