<commit_before>// Copyright (C) 2015, 2016 <NAME> <<EMAIL>>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef abz_random_algorithm_hpp
#define abz_random_algorithm_hpp

/// @file abz/random/algorithm.hpp
/// Pseudorandom numbers algorithms.

#include "abz/detail/macros.hpp"
#include "abz/random/random.hpp"

#include <algorithm>
#include <iterator>

ABZ_NAMESPACE_BEGIN

/// @cond ABZ_INTERNAL
namespace _ {

} // namespace _
/// @endcond ABZ_INTERNAL

namespace random {

/// @name fill
/// Filling a range with random numbers.
/// @{

/// Fills a range with random values.
///
/// Assigns each element in the range \f$[first, last)\f$ a random value. The values are generated
/// with @ref abz::rand using default parameters.
///
/// Note that each element is assigned a <b>different</b> value. If you want to assign all elements
/// the same random value, use <tt>std::fill(first, last, abz::rand())</tt>.
///
/// @code
/// std::vector<double> values(10);<commit_msg>Remove dead code<commit_after>// Copyright (C) 2015, 2016 <NAME> <<EMAIL>>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef abz_random_algorithm_hpp
#define abz_random_algorithm_hpp

/// @file abz/random/algorithm.hpp
/// Pseudorandom numbers algorithms.

#include "abz/detail/macros.hpp"
#include "abz/random/random.hpp"

#include <algorithm>
#include <iterator>

ABZ_NAMESPACE_BEGIN

namespace random {

/// @name fill
/// Filling a range with random numbers.
/// @{

/// Fills a range with random values.
///
/// Assigns each element in the range \f$[first, last)\f$ a random value. The values are generated
/// with @ref abz::rand using default parameters.
///
/// Note that each element is assigned a <b>different</b> value. If you want to assign all elements
/// the same random value, use <tt>std::fill(first, last, abz::rand())</tt>.
///
/// @code
/// std::vector<double> values(10);
{'fraction_non_alphanumeric': 0.12918825561312608, 'fraction_numerical': 0.009671848013816925, 'mean_word_length': 3.4968944099378882, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5503491', 'n_tokens_mistral': 857, 'n_tokens_neox': 830, 'n_words': 341}