To generate different random numbers in C++, which of the following header file(s) must be included?

Question:To generate different random numbers in C++, which of the following header file(s) must be included?

1.#include <rand>

2.#include <cstdlib>

3.#include <ctime>

4.#include <cstdlib> and #include <ctime>


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!