<random>

公有成員函式 (public member function)
<random>

std::uniform_int_distribution::b

result_type b() const;
範圍的上限 (Upper bound of range)
返回與 uniform_int_distribution 關聯的引數 b。此引數指定其成員 operator() 可能返回的值範圍的上限。

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

引數



返回值

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

複雜度

常量。

另見