#include <iostream.h>
#include <stdlib.h>
#include <time.h>
main ()
{
srand (time (NULL));
int i;
char opc;
do
{
system ("cls");
cout<<"B " <<(1+ rand()%15)<<endl;
cout<<"n"<<endl;
cout<<"I " <<(1+ rand()%(30-15+1)+15)<<endl;
cout<<"n"<<endl;
cout<<"N " <<(1+ rand()%(45-30+1)+30)<<endl;
cout<<"n"<<endl;
cout<<"G " <<(1+ rand()%(60-45+1)+45)<<endl;
cout<<"n"<<endl;
cout<<"O " <<(1+ rand()%(75-60+1)+60)<<endl;
cout<<"n"<<endl;
cout<<"Desea saber otros 5 numeros? S/N"<<endl;
cin>>opc;
}
while (opc=='S');
system("pause");
}