0

What is the header file of srand() function

23rd Apr 2017, 8:15 AM
Serjeel Ranjan
Serjeel Ranjan - avatar
2 odpowiedzi
+ 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