uniform_real_distribution::operator()
傳回選擇性值。
template<class Engine>
result_type operator()(Engine& eng);
template<class Engine>
result_type operator()(Engine& eng,
const param_type& par0);
參數
eng
選擇性引擎。par0
用於參數封裝傳回選擇性值。
備註
成員函式使用 引擎eng ,平均分散的浮點值的來源並傳回與每一個值 x 的浮點數值在半開放範圍結果以相等的可能性和值的外部 [min(), max()) 發生第0項可能性的該範圍。
第二 + 成成員函式相同的行為,不過,前者使用在 par0儲存的參數。
需求
標題: <random>
命名空間: std