std::mersenne_twister_engine::max
static constexpr result_type max(); | | (since C++11) |
---|
返回随机数引擎可能生成的最大值。这个值等于2w。
- 1,何处
w
模板参数是否也可作为静态成员访问?word_size
...
参数
%280%29
返回值
最大潜在生成值。
复杂性
常量。
另见
min static | gets the smallest possible value in the output range (public static member function) |
---|
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com