Why is the if statement failed? C++

sure and now it works and I have this result as I want


all the portions are created with random type of groups and random items in it by random numbers.

but now I don’t have the loop to check if the items are duplicated

1 Like