C++ Program to Generate Random Numbers

#include<iostream>
#include<time.h>
#include<stdlib.h>

using namespace std;

int main()
{
int a;
srand((unsigned)time(NULL));
a=rand();
cout<<a;
return 0;
}

Comments

Popular posts from this blog