Share via


discrete_distribution::param

Gets or sets the parameters for the distribution.

param_type param() const;
void param(const param_type& par0);

Parameters

  • par0
    The parameter pack used to initialize all the parameters of the distribution.

Remarks

The first member function returns an object that stores all the parameters of the distribution.

The second member function initializes all the parameters from par0.

Requirements

Header: <random>

Namespace: std

See Also

Reference

<random>

discrete_distribution Class

Other Resources

<random> Members