- random[meta header]
- std[meta namespace]
- philox_engine[meta class]
- function[meta id-type]
- cpp26[meta cpp]
static constexpr result_type max();生成し得る値の最大値を取得する。
2^w - 1を返す。
定数時間
#include <iostream>
#include <random>
int main()
{
std::uint32_t max_value = std::philox4x32::max();
std::cout << max_value << std::endl;
}- max()[color ff0000]
4294967295
- C++26
- Clang: 23 [mark verified]
- GCC: 16.1 [mark verified]
- Visual C++: 2026 Update 2 [mark noimpl]