iam facing thesame problem of run page not getting displayed.can i use srand function in
this program. and what is its use and syntax?
#include<iostream.h>
#include<stdlib.h>
int randomno();
int main()
{ int i;
cout<<"ten random numbers for the range 0 to 50"<<endl;
for(i=0;i<10;i++) { randomno(); }
} i
int randomno()
{
int j;
j = rand();
if (!(j >= 50&&j<=0))
cout<< j<<endl;
return 0;
}