<random>

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

std::uniform_real_distribution::max

result_type max() const;
範圍的上限 (Upper bound of range)
返回由成員 operator() 可能返回的值的最小上界,對於 uniform_real_distribution 而言,它是分佈引數 b

此分佈產生的可能值的區間是右開區間,因此,產生的可能值永遠不會等於此值,而是小於此值。

引數



返回值

分佈引數 b
結果型別 (result_type)是一個成員型別,定義為第一個類模板引數的別名 (實數型別 (RealType)).

複雜度

常量。

另見