Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 752 Bytes

File metadata and controls

53 lines (38 loc) · 752 Bytes

min

  • random[meta header]
  • std[meta namespace]
  • bernoulli_distribution[meta class]
  • function[meta id-type]
  • cpp11[meta cpp]
result_type min() const;

概要

生成し得る値の下限を取得する。

戻り値

falseを返す。

#include <iostream>
#include <random>

int main()
{
  std::bernoulli_distribution dist(0.5);

  bool min_value = dist.min();
  std::cout << std::boolalpha << min_value << std::endl;
}
  • min()[color ff0000]

出力

false

バージョン

言語

  • C++11

処理系

参照