Lines Matching refs:GetRandomIndex
55 size_t GetRandomIndex(RandomEngine* random, size_t count) { in GetRandomIndex() function
63 size_t bit = GetRandomIndex(random, size * 8); in FlipBit()
76 return GetRandomIndex(random, n) == 0; in GetRandomBool()
184 oneof->field(GetRandomIndex(random_, oneof->field_count())); in Sample()
208 {{message, field, GetRandomIndex(random_, field_size + 1)}, in Sample()
212 size_t random_index = GetRandomIndex(random_, field_size); in Sample()
314 GetRandomIndex(random_, field_size)); in Sample()
530 if (int k = GetRandomIndex(random_, field_size2 - j)) { in CrossOverImpl()
535 int keep = GetRandomIndex(random_, field_size2 + 1); in CrossOverImpl()
540 int cross = GetRandomIndex(random_, std::min(keep, remove) + 1); in CrossOverImpl()
542 int k = GetRandomIndex(random_, keep); in CrossOverImpl()
543 int r = keep + GetRandomIndex(random_, remove); in CrossOverImpl()
635 return (index + 1 + GetRandomIndex(random_, item_count - 1)) % item_count; in MutateEnum()
643 result.erase(GetRandomIndex(random_, result.size()), 1); in MutateString()
647 size_t index = GetRandomIndex(random_, result.size() + 1); in MutateString()
648 result.insert(result.begin() + index, GetRandomIndex(random_, 1 << 8)); in MutateString()
654 result.push_back(GetRandomIndex(random_, 1 << 8)); in MutateString()