突然找到了
/** @name rand
* The {\bf rand} function generates a sequence of pseudo-random integer
* values in the range [0,RAND_MAX].
*
* The implementation shall behave as if no library function calls {\bf rand}.
*/
int rand (void);
/** @name srand
* The {\bf srand} function sets the starting seed for the pseudo-random
* number sequence generated by the {\bf rand} function. If {\bf srand} is
* called again with the same seed value, the same sequence of value shall
* be returned by {\bf rand}. If {\bf rand} is called without {\bf srand}
* having first been called, the pseudo-random sequence of numbers generated
* shall be the same as if {\bf srand} had been called with a seed value
* of 1.
*
* The implementation shall behave as if no library function calls {\bf srand}.
*/
void srand (auto unsigned int seed); |