C++ program For Generating Random Numbers.

 C++ program For Generating Random Numbers.

-Dinesh Kumar E

This program can generates random numbers between(0 to 2147483647)


Code:

#include<iostream>
#include<stdlib.h>
using namespace std;
int main ()
{
int i,comp;
for(i=1;i>0;i++)
{
comp=(rand());
cout<<comp<<"\n";
}
}

Comments

Popular Posts