can u pls explain to me the use pf srand function & its syntax?i tried the following coding.it compiled,but runpage is not getting displayed.
#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(); }
return o;}
int randomno()
{ int j;
j = rand();
if (!(j >= 50&&j<=0))
cout<< j<<endl;
else
cout<<"out of range"<<endl;
return 0;
}