【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.1.16.1.18 srand
Contents
Description
The srand function sets the starting point for generating a series of pseudorandom integers.
Syntax
void srand( unsigned int n )
Parameters
- n
- [input] a random starting point for random-number generation
Return
None.
Examples
EX1
#include <origin.h> int test_srand() { int nn; srand(1); nn = rand(); out_int("rand()=", nn); srand(1000); nn = rand(); out_int("rand()=", nn); return 1; }
Remark
See Also
Header to Include
origin.h