What is the header file of srand() function | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

What is the header file of srand() function

23rd Apr 2017, 8:15 AM
Serjeel Ranjan
Serjeel Ranjan - avatar
2 Respostas
+ 10
<cstdlib>
23rd Apr 2017, 8:19 AM
Hatsy Rei
Hatsy Rei - avatar
+ 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
23rd Apr 2017, 8:20 AM
Nithiwat
Nithiwat - avatar