名稱空間
變體
操作

std::uniform_int_distribution<IntType>::a, b

來自 cppreference.com
 
 
 
 
 
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) [編輯]