what is the randomize function ???

plz give me it's explination ????

give me it's output also ????
main()
{
randomize();
char city[][10]={"del","chn","kol","bom","bng"};
int fly;
for(int i=0;i<3;i++)
{
fly=random(2)+1;
cout << city[fly]<<":";
}

}
Last edited on
randomize() seeds the random number generator used by the random() function.
Topic archived. No new replies allowed.