Skip to content

Files

Latest commit

 

History

History
53 lines (38 loc) · 746 Bytes

File metadata and controls

53 lines (38 loc) · 746 Bytes

t

  • random[meta header]
  • std[meta namespace]
  • binomial_distribution[meta class]
  • function[meta id-type]
  • cpp11[meta cpp]
IntType t() const;

概要

試行回数tを取得する。

戻り値

構築時に設定された、試行回数tを返す。

#include <iostream>
#include <random>

int main()
{
  std::binomial_distribution<> dist(3, 0.5);

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

出力

3

バージョン

言語

  • C++11

処理系

参照