Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 756 Bytes

File metadata and controls

53 lines (38 loc) · 756 Bytes

b

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

概要

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

戻り値

構築時に設定された、値の上限を返す。

#include <iostream>
#include <random>

int main()
{
  std::uniform_real_distribution<> dist(0.0, 1.0);

  double b = dist.b();
  std::cout << b << std::endl;
}
  • b()[color ff0000]

出力

1

バージョン

言語

  • C++11

処理系

参照