NSArray *array = [NSArrayarrayWithObjects:[UIImageimageNamed:@"bird6"],
[UIImageimageNamed:@"bird7"], nil];
srandom(time(NULL));
int a = random()%2;
UIImage *image = [array objectAtIndex:a];
UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
[view addSubview:imageView];
[imageView release];