Constructs a distribution from a list of weights.

Synopsis

Declared in <absl/random/discrete_distribution.h>

explicit
discrete_distribution(std::initializer_list<double> weights);

Parameters

Name

Description

weights

The weights of the possible outcomes.

Created with MrDocs