#include<iostream>
using namespace std;
#include<stdlib.h>
int main()
{
cout<<rand();
}
When I run this program, it generates random number like 41. And when I run the program again, it generates the same number, i.e. 41.
But I want to generate different random number all the time when we run the program. So, please tell me, how it can be done?