#include<iostream>
#include<vector>
using namespace std;
int main()
{
const int TYPE_OF_FISH=4;
vector<Fish*>FishVec(TYPE_OF_FISH);
FishVec[0]=new AustralianBass();
FishVec[1]=new EelTailedCatfish();
FishVec[2]=new GippslandPerch();
FishVec[3]=new ShortFinedEel();
cout<<"welcome for fish catching \n";
cout<<"press any to go out \n";
cout<<"keep pressing enter to get catch\n";
int i;
Fish* aFish;
char response;
RandomInt d4(0,TYPE_OF_FISH-1);
for(;;)
{
cin.get(response);
if(response!='\n')
break;
i=d7.generate();
aFish=FishVec[i];
cout<<"caught"<<aFish->getName()
<<aFish->getScientificName()
<<aFish->getWeight()
<<aFish->printMe();
}
for(i=0;i<TYPE_OF_FISH;i++)
delete FishVec[i];
cout<<"have a nice day for catching fish"<<endl;
please help me to catch diffrent type of fish randomly
how can i generate randomly from this function
RandomInt d4(0,TYPE_OF_FISH-1);