Lines Matching defs:random
82 // A valid random seed must be in [1, kMaxRandomSeed].
111 // Returns a random seed in range [1, kMaxRandomSeed] based on the
127 // Returns the first valid random seed after 'seed'. The behavior is
132 << "Invalid random seed " << seed << " - must be in [1, "
304 void ShuffleRange(internal::Random* random, int begin, int end,
320 static_cast<int>(random->Generate(static_cast<uint32_t>(range_width)));
328 inline void Shuffle(internal::Random* random, std::vector<E>* v) {
329 ShuffleRange(random, 0, static_cast<int>(v->size()), v);
820 // Gets the random seed used at the start of the current test iteration.
823 // Gets the random number generator.
824 internal::Random* random() { return &random_; }
933 // The random number seed used at the beginning of the test run.
936 // Our random number generator.