すべての分布パラメーターを格納します。
struct param_type {
typedef discrete_distribution<IntType> distribution_type;
param_type();
template<class Fn>
param_type(size_t count,
double low, double high, Fn func);
std::vector<double> probabilities() const;
bool operator==(const param_type& right) const;
bool operator!=(const param_type& right) const;
};
解説
このパラメーター パッケージを operator() に渡して、戻り値を生成できます。
必要条件
ヘッダー : <random>
名前空間: std