<random>

公有成員函式
<random>

std::binomial_distribution::t

result_type t() const;
範圍的上限 (Upper bound of range)
返回與 binomial_distribution 相關的引數 t

此引數代表了 operator() 生成的每個值所模擬的獨立 伯努利分佈 實驗次數。

此引數在 構造時 作為第一個引數設定。

引數



返回值

分佈物件生成的值的可能範圍的上限。
result_type是一個成員型別,定義為第一個類模板引數的別名 (IntType).

複雜度

常量。

另見