Hello,
i have to create a deck of 126 cards, listed in an arry list, and distribute them randomly to 4 decks of 20 cards.
first i created 5 arrayLists, 1 for each player + 1 containing the 126 cards.
but now, for distributing them i have the problem of the randomly chosen cards, it can be same int variable so duplicated cards.
so, i would like to indicate, when a card is taken from this arrayList, it cannot be chosen a second time, maybe by deleting it, or moving the other cards, i don't know.
by the in the both situation, i'm wonderingn how i can do it to prevent conflict of "unfund card"