float RandomItem (list ItemsList);
int main(){
list <int> ItemsList = {1,2,3};
cout << ItemsList.size();
cout << RandomItem(ItemsList);
return 0;
}
float RandomItem (list ItemsList){
srand(time(0));
int min = 0;
int max = ItemsList.size();
int i = rand()%max + min;
return ItemsList[i];
}