Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 952 Bytes

File metadata and controls

58 lines (42 loc) · 952 Bytes

min

  • random[meta header]
  • std[meta namespace]
  • shuffle_order_engine[meta class]
  • function[meta id-type]
  • cpp11[meta cpp]
static constexpr result_type min() { return Engine::min(); }

概要

生成し得る値の最小値を取得する。

戻り値

元となる乱数生成器の最小値を返す。

計算量

定数時間

#include <iostream>
#include <random>

int main()
{
  std::uint32_t min_value = std::knuth_b::min();
  std::cout << min_value << std::endl;
}
  • min()[color ff0000]
  • std::knuth_b[link /reference/random/knuth_b.md]
  • std::uint32_t[link /reference/cstdint/uint32_t.md]

出力

1

バージョン

言語

  • C++11

処理系

参照