- random[meta header]
- std[meta namespace]
- random_device[meta class]
- function[meta id-type]
- cpp11[meta cpp]
static constexpr result_type max();生成する値の最大値を取得する。
numeric_limits<result_type>::max()
定数時間
#include <iostream>
#include <random>
int main()
{
unsigned int max_value = std::random_device::max();
std::cout << max_value << std::endl;
}- max()[color ff0000]
4294967295
- C++11
- Clang: ??
- GCC:
- GCC, C++11 mode: 4.7.2
- ICC: ??
- Visual C++: 2010, 2012, 2013, 2015, 2017