Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
What is the header file of srand() function
2 Respostas
+ 10
<cstdlib>
+ 5
A call to the rand() functionĀ (header fileĀ stdlib.h), with no arguments, returns a fairly good approximation to a random integer in the range 0 to RAND_MAX (defined in stdlib.h). Thesrand() functionĀ sets its argument, which is of type int, as the seed for a new sequence of numbers to be returned by rand().
http://farside.ph.utexas.edu/teaching/329/lectures/node25.html