- Home
- Course Category
- Course Result
- Course Detail
Hot Line: 0124-2383121
Course Introduction
Programs for practice
Following C++ program generate 100 random numbers using rand() function of stdlib.h library:
Source Code: Generate Random Numbers
/* C++ Program - Generate Random Numbers */
#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
clrscr();
int i;
for(i=0; i<100; i++)
{
cout<<rand()<<"\t";
}
getch();
}
Output
Run to see the random numbers