Wrtie a C Program to Generate Random Number

/**************************************************************/
/*Programmed by : Vivek Patel**********************************/
/*For Bugs Free feel to contact********************************/
/*Website : www.vivekpatel.cjb.net*****************************/
/*Email : vivek_patel9@rediffmail.com**************************/
/**************************************************************/

#include
#include
#include

void main(){
int i,cnt=0,rnd;
clrscr();
while(1){
rnd=random(100);
if(rnd>50 && rnd<100){
printf("\nRandom No [%d] : %d ",cnt+1,rnd);
cnt++;
}
if(cnt==10)
break;
}
getch();
}



Powered by Wufoo