Constructs a distribution from a range of weights.

Synopsis

Declared in <absl/random/discrete_distribution.h>

template<typename InputIterator>
explicit
discrete_distribution(
    InputIterator begin,
    InputIterator end);

Parameters

Name

Description

begin

An iterator to the first weight.

end

An iterator past the last weight.

Created with MrDocs