RAND_MAX
来自cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Defined in header <cstdlib>
|
||
#define RAND_MAX /*implementation defined*/ |
||
扩展到一个整数常量表达式,等于最大的返回值的函数std::rand。这个值是依赖于实现。它的保证,这个值是至少32767.
原文:
Expands to an integer constant expression equal to the maximum value returned by the function std::rand. This value is implementation dependent. It's guaranteed that this value is at least 32767.
[编辑] 另请参阅
产生一个伪随机数 (函数) | |
初始化的伪随机数发生器 原文: initializes pseudo-random number generator (函数) | |
C documentation for RAND_MAX
|