std::uniform_int_distribution<IntType>::a, b
来自 cppreference.cn
result_type a() const; |
(1) | (C++11 起) |
result_type b() const; |
(2) | (C++11 起) |
返回分布构造时使用的参数。
1) 返回 *a* 分布参数。它定义了可能生成的最小值。默认值为 0。
2) 返回 *b* 分布参数。它定义了可能生成的最大值。默认值为 std::numeric_limits<IntType>::max()。
[编辑] 参数
(无)
[编辑] 返回值
1) *a* 分布参数。
2) *b* 分布参数。
[编辑] 参阅
(C++11) |
获取或设置分布参数对象 (public member function) |