最終更新日時(UTC): 2025年07月11日 17時16分44秒
Koichi Murase が更新

履歴 編集

function
<random>

std::exponential_distribution::max(C++11)

result_type max() const;

概要

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

戻り値

値の範囲の上限を返す。

#include <iostream>
#include <random>

int main()
{
  std::exponential_distribution<> dist(1.0);

  double max_val = dist.max();
  std::cout << max_val << std::endl;
}

出力例

1.79769e+308

バージョン

言語

  • C++11

処理系

参照

Morty Proxy This is a proxified and sanitized view of the page, visit original site.