NSData *datanow = [NSData data]; int i = (int)datanow; srand(i); rand(); //int effectPicNum = rand()%7;