通过本文主要向大家介绍了c语言随机数,c语言随机数生成,c语言产生随机数,c语言随机数函数,c语言如何产生随机数等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
void srand( unsigned int seed );
head file is <stdlib.h>
Remarks
The srand function sets the starting point for generating a series of pseudorandom
integers. To reinitialize the generator, use 1 as the seed argument. Any other value for
seed sets the generator to a random starting point. rand retrieves the pseudorandom
numbers that are generated. Calling rand before any call to srand generates the same
sequence as calling srand with seed passed as 1.
</div>